Jump to content

ibrahimjan

Recommended Posts

Hi all,I am trying to use AspUpload from persits to get .png file info, I dont want to upload the image, I already have it on a directory on the server, all I want is to point aspupload to that image and get its size and path, any ideas. This is the code I am working with, any ideas how I can modify it to read a specified image and not to use the upload_form.asp?? upload_form.asp

<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="test2.asp">  Select an image (GIF, JPEG, BMP, PNG):<BR>  <INPUT TYPE="FILE" SIZE="40" NAME="FILE1"><BR><INPUT TYPE=SUBMIT VALUE="Upload!"></FORM>

upload_page.asp

Set Upload = Server.CreateObject("Persits.Upload")' Capture and save uploaded imageFor Each File in Upload.Files   If File.ImageType = "UNKNOWN" Then	  Response.Write "This is not an image."	  Response.End   End If   Response.Write File.Path & "<BR>"   Response.Write "Type: " & File.ImageType & "<BR>"   Response.Write "Size: " & File.ImageWidth & " x " & File.ImageHeight & " pixels"Next

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...