Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Upload File Size Limit
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

leatherlips
Senior Member

USA
1838 Posts

Posted - 23 June 2010 :  11:43:48  Show Profile  Visit leatherlips's Homepage
I am using the Proeder's Upload MOD. In it you set the file size limit that users can upload. I would like the admin and moderators to be able to add larger file sizes. How would I do that?

I believe the code that deals with the upload file size is below:

strSQL = "SELECT UPLOAD_VALUE FROM " & strTablePrefix & "UPSIZE WHERE UPLOAD_VAR = 'STRUPLOADFILESIZE'"
   set rsSize = my_Conn.Execute (strSQL)
   strAllowedSize = rsSize("UPLOAD_VALUE")
   
      if bytecount < strAllowedSize then
         AllowSize = true
      else
         AllowSize = false
      end if


Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

Carefree
Advanced Member

Philippines
4222 Posts

Posted - 23 June 2010 :  12:13:06  Show Profile

strSQL = "SELECT UPLOAD_VALUE FROM " & strTablePrefix & "UPSIZE WHERE UPLOAD_VAR = 'STRUPLOADFILESIZE'"
   set rsSize = my_Conn.Execute (strSQL)
   strAllowedSize = rsSize("UPLOAD_VALUE")
   
      if bytecount < strAllowedSize or mLev>2 then
         AllowSize = true
      else
         AllowSize = false
      end if
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 23 June 2010 :  12:49:40  Show Profile  Visit leatherlips's Homepage
I tried that but it never uploads the file. It just stays on the upload page pretending it is uploading. Is there some other element missing?

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 23 June 2010 :  13:39:35  Show Profile  Visit AnonJr's Homepage
Depends on the size of the file too. How big of a file are you trying to upload and does it work if you temporarily bump up the upload size restriction in the code the way it was?
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 23 June 2010 :  20:17:27  Show Profile  Visit leatherlips's Homepage
I have it set for 5MB. I was trying to upload an 11MB file. It seems regardless of if I change the code to allow admin/mods upload more or if I set it in the admin panel to let everyone upload that size, it times out.

My timeout setting in the admin panel is 3600 which = 1 hour.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 24 June 2010 :  03:10:20  Show Profile  Visit MarcelG's Homepage
For the purpose of large files I've implemented a PHP based solution on a subdomain (see q.oxle.com) which is hosted on much cheaper PHP hosting.
There uploading 50MB files isn't even a problem ; it still takes ages, but it doesn't time out.
The link to that upload page was added to Snitz for all non-moderator members and guests. That way they can attach images/files etc to their posts without using the more expensive ASP hosting.

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 24 June 2010 :  06:13:05  Show Profile  Visit AnonJr's Homepage
quote:
Originally posted by leatherlips

I have it set for 5MB. I was trying to upload an 11MB file. It seems regardless of if I change the code to allow admin/mods upload more or if I set it in the admin panel to let everyone upload that size, it times out.

My timeout setting in the admin panel is 3600 which = 1 hour.



That would seem to point to either a server problem/configuration issue or the code just can't handle 11MB files.

What version of Windows Server are you running on?
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 24 June 2010 :  07:36:04  Show Profile  Visit HuwR's Homepage
if you are using that later versions of IIS (server 2003 and above) then there is an inbuild 4Mb limit for file uploads

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 24 June 2010 :  08:08:21  Show Profile  Visit leatherlips's Homepage
I don't know what version my hosts is running. I guess I'll just have to live with it.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 24 June 2010 :  09:50:10  Show Profile  Visit AnonJr's Homepage
Find out what version you are running. I can't check at the moment, but if I remember right it might be in the Server Information on the Admin page.

If you're running a newer version, depending on how your host has it set up we can probably help you up the upload cap.
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 24 June 2010 :  11:29:34  Show Profile  Visit leatherlips's Homepage
I just checked and it looks like IIS 6.0.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 24 June 2010 :  14:22:18  Show Profile  Visit AnonJr's Homepage
Do you have access to the server to change IIS settings?
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 24 June 2010 :  14:48:47  Show Profile  Visit leatherlips's Homepage
I'm not sure. What would I need to look for? If I do, what do I need to change?

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 24 June 2010 :  15:43:41  Show Profile  Visit AnonJr's Homepage
Here's the KB article I used when setting up the internal server at work: http://support.microsoft.com/kb/327659
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 24 June 2010 :  17:37:28  Show Profile  Visit leatherlips's Homepage
Thanks for the article. In looking at my control panel it doesn't look like I have that kind of control to do what the article says.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 25 June 2010 :  10:56:46  Show Profile  Visit AnonJr's Homepage
It might be worth contacting your host to see if its something they will do for you.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.6 seconds. Powered By: Snitz Forums 2000 Version 3.4.07