hi,

i am create one application. in this application upload the images.
how to upload images without using licesen copy

Dani AI

Generated

Short answer: you can avoid paid COM components by using a pure-ASP upload routine (as others here suggested), but a working uploader is only part of the job. The common gaps are validation, storage/permission handling, server limits, and preventing execution of uploaded files. Below are practical notes and small helpers to use after the upload routine returns an uploaded filename.

A minimal HTML form (standard) to start with:

<form method="post" enctype="multipart/form-data" action="upload.asp">
  <input type="file" name="file1" />
  <input type="submit" value="Upload" />
</form>

Sanitize and create a unique filename (VBScript helpers to run after you get the original client filename):

Function SafeFileName(s)
  Dim re
  Set re = New RegExp
  re.Pattern = "[^A-Za-z0-9_\.\-]"
  re.Global = True
  SafeFileName = re.Replace(s, "")
End Function

Function UniqueFileName(orig)
  Dim pos, base, ext
  pos = InStrRev(orig, ".")
  If pos > 0 Then
    base = Left(orig, pos - 1)
    ext = Mid(orig, pos)
  Else
    base = orig: ext = ""
  End If
  UniqueFileName = SafeFileName(base) & "_" & Replace(Replace(Replace(Now(), "/", ""), ":", ""), " ", "_") & "_" & CStr(Int(Rnd()*10000)) & ext
End Function

Checklist and cautions

  • Validate server-side: allowed extensions + check magic bytes (JPEG starts 0xFF 0xD8 0xFF; PNG 0x89 0x50 0x4E 0x47 0x0D 0x0A 0x1A 0x0A; GIF starts "GIF87a"/"GIF89a"). Client MIME/type is not enough.
  • Limit file size and image dimensions. If uploads silently fail, check IIS request-size limits and error logs.
  • File storage: store uploads outside the web root or deny execute permissions on the upload folder. Grant write to the correct account (IIS_IUSRS or the application pool identity on newer IIS; IUSR/NETWORK SERVICE on older servers).
  • Post-process: strip dangerous metadata, optionally resize/convert via a trusted server tool, and run virus scanning if possible.
  • Troubleshooting: if you get permissions or 4xx errors, check folder ACLs, IIS logs, and test with very small images first.

Credit: and pointed to pure-ASP solutions as a starting place — use one of those parsers but add the validation and server-side safeguards above before deploying.

Recommended Answers

All 2 Replies

Refer the Attachment pure-asp-upload.zip.
Self - Explanatory examples are available.
Revert still any doubts / clarifications...

Following is actual WEB SITE

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.