Solved

limt picure dimension and size upload

Posted on 2004-08-18
2
170 Views
Last Modified: 2010-04-25
good day to all the pros here at experts exchange!

i'm having trouble uploading files (like pictures, etc.) into the server. right now i'm using iis (5.1? not sure what version but it is the one on win xp pro) and mysql as my server. i'm also using dreamweaver mx 2004.

i got a main.asp file which contains a file field (you know the one inside a form tag with the "browse" button following a text field) and points to a process.asp file and outputs the result to output.asp whether success or not and the details (file size, name and dimensions), is it possible?

the problem is like in forums, where you can upload your avatar, for example, limiting the size by 60kb and the dimension 60x60 also limiting the file types by just jpeg, jpg and gif? what are the codes i must write to my process.asp file, or i can already verify it on the client-side?

thanks guys! ^_^
0
Comment
Question by:justin_316_sr
2 Comments
 
LVL 14

Accepted Solution

by:
Esopo earned 250 total points
ID: 11835411
Hi Justin,

You can do some verification on the client side but it is not recommended, mainly because client side scripting is not designed for that purpouse and at the very least your users will get security warning messages.

You can do it easily on the server side. The following links should help you get it together in no time:

- An Insider View of Uploading Files using ASP (include code to limit size of upload)
  http://www.asp101.com/resources/saupload.asp

- More on size limiting
  http://www.netline.ch/support/info/aspcomp/safileup/prog_g_limitsize.htm


For extra stuff, you might want to check this link:
http://www.aspin.com/home/webapps/fileoper/upload

Best regards,

Esopo.
0
 

Author Comment

by:justin_316_sr
ID: 11849656
cool! thanks alot man! ^_^
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question