Page 1 of 1

Can upload small .txt but not 4.3mb .mp3 file !

Posted: Sun Jul 31, 2011 2:13 pm
by ssquirrel
Script URL: http://submit.notypos.org/
Version of script: 2.2
Hosting company: nvita.org
URL of phpinfo.php: http://submit.notypos.org/phpinfo.php
URL of session_test.php: http://submit.notypos.org/session_test.php
What terms did you try when SEARCHING for a solution:

hesk upload; hesk mp3, hesk filetypes, hesk txt mp3

Write your message below:

hello, I can upload a small txt file but not a 4.3 mb mp3 file. What''s wrong? I have no idea where to start. Here is the error:

[client 192.168.0.19] PHP Warning: readfile(/usr/home/squirrel/pub/notypos/attachments/SJEYRHBMMZ_5cb679b8c9583f6130af9561ee34f5e0.mp3) [<a href='function.readfile'>function.readfile</a>]: failed to open stream: No such file or directory in /usr/home/squirrel/pub/notypos/download_attachment.php on line 91, referer: http://submit.notypos.org/ticket.php?tr ... resh=60978

It looks like the file is uploading:

tcpdump -i fxp1 -nN -vvv -xX host 192.168.0.19

blah blah data stream....

Re: Can upload small .txt but not 4.3mb .mp3 file !

Posted: Sun Jul 31, 2011 2:40 pm
by ssquirrel
Ehhh ... don't know why but the value of upload_max_filesize is only 2M in:

http://submit.notypos.org/phpinfo.php

I set the value to 200M with an .htaccess file:

php_value upload_max_filesize 200M

Somehow this value can only be set with an .htaccess file ...

Oh well thanks all ... at least the post is here! lol

Re: Can upload small .txt but not 4.3mb .mp3 file !

Posted: Sun Jul 31, 2011 5:19 pm
by Klemen
Correct, file upload limits are handled by PHP settings.

You should also increase the value of post_max_size as yours is now limited to 8Mb (max files + data inthe form == 8 Mb).