Print Page | Close Window

Image / Upload Size

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=22910
Printed Date: 07 April 2026 at 11:31pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Image / Upload Size
Posted By: Ipshwitz
Subject: Image / Upload Size
Date Posted: 16 March 2007 at 8:21pm
How would I go about changing the max image and upload size in WWF?
 
I know if you log into the admin section you can change it there, but I need to make it bigger.  The Image size would be better of at like 5,000kb and the file upload would be better off at like 15,000 - 20,000
 
I know this seems large.  But I'm using this to help proof jobs and accept custom priting jobs over the net so images and attachments can get quite large.


-------------
-+-+-+-+-+-+-+-+-
I am Ip.
'nuff said.



Replies:
Posted By: WebWiz-Bruce
Date Posted: 18 March 2007 at 10:09am
This is a limit within the IIS web server. Please do a search for more on this as it has been covered a number of times.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Ipshwitz
Date Posted: 20 March 2007 at 11:56am
borg, 
 
I have done a search and have come up with some general ideas, however I'm still a little lost.  I know that the IIS Metadatabase limit is set at 28204800. 
 
Knowing that, I made the following changes
database / tblConfiguration:
upload_img_size: 5000
upload_files_size: 50000
 
admin_upload_configure
          <option<% If intMaxImageSize = 2000 Then Response.Write(" selected") %>>2000</option>
          <option<% If intMaxImageSize = 2500 Then Response.Write(" selected") %>>2500</option>
          <option<% If intMaxImageSize = 5000 Then Response.Write(" selected") %>>5000</option>
 
--- and ---
 
    <option<% If intMaxFileSize = 10000 Then Response.Write(" selected") %>>10000</option>
    <option<% If intMaxFileSize = 20000 Then Response.Write(" selected") %>>20000</option>
    <option<% If intMaxFileSize = 50000 Then Response.Write(" selected") %>>50000</option>

 
Now, when I go to upload, I get the following errors:
RTE_popup_file_atch.asp

Microsoft VBScript runtime error '800a0006'

Overflow: 'CInt'

/client/RTE_popup_file_atch.asp, line 113

(which is: intMaxFileSize = CInt(rsCommon("Upload_files_size")))
 
--- and ----
 
admin_upload_configure.asp

Microsoft VBScript runtime error '800a0006'

Overflow: 'CInt'

/client/admin_upload_configure.asp, line 216

(which is intMaxFileSize = CInt(rsCommon("Upload_files_size")))
 
 
 
So, I know i'm misunderstanding something.  What am I missing though?


-------------
-+-+-+-+-+-+-+-+-
I am Ip.
'nuff said.


Posted By: MrMellie
Date Posted: 20 March 2007 at 12:46pm
Change the 'CInt' that are giving problems to 'CLng'. CInt has a maximum value of  32768. CLng (long integer) has a max value of 2147483647.


Posted By: Ipshwitz
Date Posted: 20 March 2007 at 4:02pm
Originally posted by MrMellie MrMellie wrote:

Change the 'CInt' that are giving problems to 'CLng'. CInt has a maximum value of  32768. CLng (long integer) has a max value of 2147483647.
 
Would this be in the database? Or change the value in admin_upload_config


-------------
-+-+-+-+-+-+-+-+-
I am Ip.
'nuff said.


Posted By: Ipshwitz
Date Posted: 20 March 2007 at 4:13pm
Ok - I found where to change them at - thanks very much

-------------
-+-+-+-+-+-+-+-+-
I am Ip.
'nuff said.


Posted By: WebWiz-Bruce
Date Posted: 20 March 2007 at 7:18pm
IIS has the 2Mb limit for a reason, because uploading via HTTP is not very good as files often become corrupted and the web servers resources are stretched while the upload is taking place. I have even seen entire sites stop working while an upload takes place.

If you are wanting to upload files of this size I would look at setting up some type of FTP system to allow your users to upload files.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net