Back to Top
The nuts and bolts for
Creative web development

Pure ASP Upload Tutorials

To give you more inside knowledge of the working of the Pure ASP Upload, here you can read all the available online tutorials!


Pure ASP Upload - Restricting width and height

Restricting image width and height

In this tutorial we will explain how to set minimum and maximum width and height for the uploaded images.

There are two types of image size checking:

  1. check on the client browser, before file is uploaded - this is done when the files are images
  2. on the server, after file is uploaded - for the other file types.

Previous TutorialTutorials IndexNext Tutorial

How to do it

To make the file upload with restricted image size, you need to:

  1. Start with basic upload page

    Start with an upload page where you have Pure ASP Upload on it. If you haven't done it yet, go through the Simple file upload tutorial.

  2. Open the Pure ASP Upload dialog

    Select the Pure ASP Upload dialog by double clicking it on the Sever behaviors list.

    Make sure you've selected Images Only for your allowed extensions.

  3. Select the Allowed Image Size
  4. When you need to restrict the size of the uploaded images, you need to fill in the minimum and/or maximum width and height on the Advanced tab. If you leave one of those values empty it means it is unlimited. The sizes are in pixels.

    In our example, we've chosen to limit the image size to min 50x50 and max 200x200 pixels.

  5. Save and done
  6. Save your page then, upload it to your server, and you are done! Go to your website and test it - you should be able to upload images only that are not bigger then 200x200 pixels and minimum 50x50 pixels.

Previous TutorialTutorials IndexNext Tutorial

George Petrov

George PetrovGeorge Petrov is a renowned software writer and developer whose extensive skills brought numerous extensions, articles and knowledge to the DMXzone- the online community for professional Adobe Dreamweaver users. His expertise in countless languages and technologies gives inspiration and teach valuable lessons on his website – DMXzone.com, which is visited daily by more than 30.000 people and is most popular for its over high-quality Dreamweaver extensions and templates.

See All Postings From George Petrov >>

Share this Article