Solved

limt picure dimension and size upload

Posted on 2004-08-18
2
162 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
Comment Utility
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
Comment Utility
cool! thanks alot man! ^_^
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now