Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Image / Upload Size
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Image / Upload Size

 Post Reply Post Reply
Author
Ipshwitz View Drop Down
Groupie
Groupie
Avatar

Joined: 23 July 2002
Location: United States
Status: Offline
Points: 97
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ipshwitz Quote  Post ReplyReply Direct Link To This Post Topic: Image / Upload Size
    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.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Ipshwitz View Drop Down
Groupie
Groupie
Avatar

Joined: 23 July 2002
Location: United States
Status: Offline
Points: 97
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ipshwitz Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
MrMellie View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 December 2006
Location: United Kingdom
Status: Offline
Points: 251
Post Options Post Options   Thanks (0) Thanks(0)   Quote MrMellie Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Ipshwitz View Drop Down
Groupie
Groupie
Avatar

Joined: 23 July 2002
Location: United States
Status: Offline
Points: 97
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ipshwitz Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Ipshwitz View Drop Down
Groupie
Groupie
Avatar

Joined: 23 July 2002
Location: United States
Status: Offline
Points: 97
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ipshwitz Quote  Post ReplyReply Direct Link To This Post Posted: 20 March 2007 at 4:13pm
Ok - I found where to change them at - thanks very much
-+-+-+-+-+-+-+-+-
I am Ip.
'nuff said.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.