Description
Images to upload
Image 1 : Size: -
Image 2 : Size: -
Image 3 : Size: -
Total size: -
Image preview :


 Huge ASP file upload - Image upload, combine several upload features.   

      This sample demonstrates several Huge-ASP file upload features.

  • Client-side preview of images - client-side JavaScript shows preview of an image when user choose some image. Client can see images before upload
  • Client-side check of file extensions - File extensions are checked before upload. If the extension is not in '.gif,.jpg,.png,.jpeg,.bmp' list, client get a warning message.
  • Client-side check of file and form size - the source form size and size of each file field is checked BEFORE the form is sent. So the client do not need to send the form to see if the size of files/upload is correct.
       - Limit for whole form is set to 52428800 Bytes
       - Limit per file is set to 1500000 Bytes
  • Upload with progress bar - This script shows progress bar immediatelly after 'Upload' click. Client can immediatelly see that upload starts and then can see progress of the upload.
  • Server side checking for form and file size
       - Limit for whole form is set to 52428800 Bytes
       - Limit per file is set to 1500000 Bytes
  • Server side checking for file extensions and content-type File extensions are checked AFTER upload once again (to handle situation when client-side script is off). If the extension is not in '.gif,.jpg,.png,.jpeg,.bmp' list or content-type is not 'image/...', file is not stored on server-side
  • Server side checking of a file CONTENTS .gif,.jpg,.png,.jpeg,.bmp files have a special contents characteristics. This script also checks the CONTENTS of a file to be sure that the file is not an .exe renamed to .gif or .jpg. The file is stored ONLY if it is REALLY an image. (see IsImage function inside this source)
  • Save files with unique file names - each correct image file is stored. If same old-file exists on server-side, new file with the same name is stored with unique file name (GetUniqueFileName function inside this script)
  • Store upload info to a database - This script also stores info about upload and each uploaded file to a database
  • Send administrator email notification - This script creates an HTML report about upload and the report is sent to administrator email.

    Destination folder is UploadFolder

          Another live upload samples.
          Upload with image preview upload a file with a client-side restriction to image extensions, progress bar, server-side checking of a file contents, size limit per upload and per file and send an administration email info
          Upload-to-email send an email with file attachments from ASP.
          Simple file upload upload one or more files along with description.
          Progress bar gallery simple upload with progress bar, several HTML formatted progress gallery.
          Upload and resize image Short upload code with image resize and format conversion.

     Huge ASP file upload   

          Huge-ASP upload is easy to use, hi-performance ASP file upload component with progress bar indicator (html based, fully customizable). Let's you upload multiple files with size up to 2GB to a disk, database or email along with another form fields. Works with large posts, any character set (including unicode utf-8). 
          More about Huge-ASP upload >>  .

          Another online samples (utilities, converting, upload)

          On-line base64 decoder and encoder - let's you convert text data and files from/to a Base64 string.
          Punycode/IDN decoder and encoder - online conversion between unicode (utf-8), punycode and IDNs (Internationalized Domain Names)
          Online binary file to SQL field (base16 or HexString) - let's you create an SQL statement to insert/update binary or a text file to a SQL database field. You can also create whole WSH (VBScript) to do the action.


  • 1996 2017 Antonin Foller, PSTRUH Software, e-mail help@pstruh.cz
    To monitor current running uploads/downloads, see IISTracer - IIS real-time monitor.