hi,
i am create one application. in this application upload the images.
how to upload images without using licesen copy
hi,
i am create one application. in this application upload the images.
how to upload images without using licesen copy
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
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.
— hielo 65Jump to Post
Upload File without COM
Free ASP Upload
http://www.freeaspupload.net/
ShadowUploader.asp
http://forums.aspfree.com/code-bank-54/pure-asp-upload-script-with-additional-features-94647.html
("attached" as zip file at bottom of page)
Refer the Attachment pure-asp-upload.zip.
Self - Explanatory examples are available.
Revert still any doubts / clarifications...
Following is actual WEB SITE
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.