Solved

limt picure dimension and size upload

Posted on 2004-08-18
2
169 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

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…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

777 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