ibrahimjan Posted January 13, 2012 Share Posted January 13, 2012 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 More sharing options...
justsomeguy Posted January 13, 2012 Share Posted January 13, 2012 You can't use the upload component for that, you need to find a different component to read file data unless you can find some native code to do that. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.