Limiting Size of Files

Results 1 to 2 of 2

Thread: Limiting Size of Files

  1. #1
    Join Date
    Dec 1969

    Default Limiting Size of Files

    Hello, I recently made a ASP Upload script but I need help with limiting the size of the uploads, can anyone help me out? Here is the Upload part of my code.<BR><BR>&#039; Check if any files were uploaded<BR>If Uploader.Files.Count = 0 Then<BR> Response.Write "File(s) not uploaded."<BR>Else<BR> &#039; Loop through the uploaded files<BR> For Each File In Uploader.Files.Items<BR> <BR> &#039; Check where the user wants to save the file<BR> <BR> &#039; Save the file<BR> File.SaveToDisk "D:mysitewwwuploads\" <BR> &#039; Output the file details to the browser<BR> Response.Write "File Uploaded: " & File.FileName & "<BR>"<BR> Response.Write "Size: " & File.FileSize & " bytes<BR>"<BR> Response.Write "Type: " & File.ContentType & "<BR><BR>" <BR><BR> Next<BR> End if

  2. #2
    Join Date
    Dec 1969

    Default RE: Limiting Size of Files

    has to do with your upload component, which one are u using??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts