Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

limt picure dimension and size upload

Posted on 2004-08-18
2
Medium Priority
?
174 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 750 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

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…
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 …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

618 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