Solved

limt picure dimension and size upload

Posted on 2004-08-18
2
172 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

724 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