Could someone please offer advice with upload.module
- below are the changes I've made so far.
Anyone have any ideas what the barrier could be?

- I've added these two lines to my settings.php
ini_set('post_max_size', '15M');
ini_set('upload_max_filesize', '15M');

- I've added this to my htaccess.
php_value upload_max_filesize 15M

I've made these changes to upload.module -- from info found at: http://drupal.org/node/21429

- $maxsize = variable_get("upload_maxsize_total", 0);
+ $maxsize = variable_get("upload_maxsize_total", 0) * 1024 * 1024;

before I cound't upload anything over 4.5MB files - that's ok now, but now I'm stuck trying to get a 9.8MB file to go over. It looks like everything is going ok, until the very end, when the file has completed uploading the page will normally refresh itself and this is when you can visually confirm on the page - that the file has been uploaded - just before doing a "submit" and making it final.

and I'm not getting any log errors or other indications that something is wrong. I don't know what else to change.

thank you very much for at least looking this over

Comments

green monkey’s picture

... its got to be something I'm doing wrong, but darn if I see it

i've searched the forum and there are some problems with upload, but nothing that seems to match my issue

- i've addressed the server and php
- i've addressed the server and drupal
- i don't see any bug reports on this issue and if it was a bug - someone would have posted it by now

what else can I check??? hmmm - it has to be something to do with file size, becuase all is well with smaller files

Mahatma’s picture

You probably checked this and i just didn't see it in your msg so forgive me if so ... but there are max filesize settings in apache conf file. Prolly all servers have this.

Can anyone help me out here? I looked in an httpd.conf and didn't see a max uploaded file size parameter...

Well, just a thought. Sure the Apache.org would have that info. I seem to remember it's a param you can change with htaccess. But I could be wrong! My memory is going more every day.
----------
LeBlank
http://drupal.cyberocity.com
It's what we've been looking for!

green monkey’s picture

thank you .. thank you .... thank you

LOL, I didn't even know I had one of those too

even if its not the problem .. at least I have something to try - which i didn't have a minute ago

I really don't mind searching and fixing things .. the thing that drives me nuts is not knowing enough about this stuff -- to ask the right questions -- which is 90% of it

Mahatma’s picture

The apache.org apache 1.3 docs has at least one filesize setting in the conf file. Is your server apache? 1.3x or 2.0 or ??
This is for 1.3x (what I use is 1.3.26)
------------------
"If, for example, you are permitting file upload to a particular location, and wich to limit the size of the uploaded file to 100K, you might use the following directive:

LimitRequestBody 102400"
------------------
And it is valid in the htaccess context (u can change it in htaccess)
----------
LeBlank
http://drupal.cyberocity.com
It's what we've been looking for!

green monkey’s picture

LOL, I'm glad you found that. I have there looking for the info. I got scared I wouldn't be able to find my way back to the front door and be lost in there for ever :-)

wow talk about a lot of info and so many different flavors of each module.

be back going to find out what version I run on

green monkey’s picture

I had to ask my host what version of apache I was using and they directed me to go look at a file called phpinfo()

cool snapshot

so after I found my apache version - i decided to read evrything on this phpinfo()

and guess what .... ?

php has a param called "post_max_size" mine was value was 8M

so i added php value post_max_size 15M to my htacess and ....

bam! it worked :-))

LeBlank ... thank you very much for the help. I had run out of questions

i hope this thread helps someone else - its has all the adjustments grouped under one topic - now if people can remember when their upload.module doesn't want to play nice - search on keyword "elephants" ;-)

Mahatma’s picture

... when you are talking about a problem. I had already thought of the php file max setting first, but from your explanation I thought you had already tried that. Something about php you said ... we could have solved this a lot sooner if I'd known you hadn't yet gone through the php ini max file settings .

Just goes to show. You're welcome for whatever help I could give ya! :) Keep an Open Source frame of mind! It's the future.

oh, BTW about memory don't set the php memory setting in php ini over 32m ... :)
----------
LeBlank
http://drupal.cyberocity.com
It's what we've been looking for!

Bèr Kessels’s picture

Normally PHP collects the whole file plus any additional post info in its memory while uploading.

So uploading a 1Gig file is, in theory, only possible if you allocate over 1 Gig to PHP.

Now, imagine two people uploading a 1 Gig file, plusfive hundred users browsing your site. Then you would probably need near to3 gigs of RAM memory.

In theory, i said, although this is a rule of thumb, its not a law. you would need to read up on this, if you are going to facilitate big or a lot of uploads.
---
If this solved you problem, please report back. This will help others whom are looking for the same solution.
Next time, please consider filing a support request.

[Bèr Kessels | Drupal services www.webschuur.com]

green monkey’s picture

Ber, thank you taking a few minutes.

These are all the things I need to learn. At this site project I do not forsee lots of files being uploaded, its mostly me right now loading content to the site.

But I do have a project towards the bottom of the to-do list that could have memory issues, your info allows me to plan better, thank you - i always perfer to plan than scramble to fix

and I've already decied that if I ever get into a positive cash flow - a dicated server is a must

Bèr Kessels’s picture

in this article:
http://www.radinks.com/upload/config.php
---
[Bèr Kessels | Drupal services www.webschuur.com]