Hey to all,
I'm currently trying to write a file uploader, but hit an interesting problem - some files just won't upload!
I've tried the following files:
testing.mp3 - 10.0mb (browser uploads it fine)
What About Bob.mp3 - 243mb (browser uploads it fine)
mix.mp3 - 10.1mb (won't upload)
When I say it doesn't upload, when I press the upload button on my form, the browser literally refreshes the page... it doesn't show the progress bar for a few seconds to indicate that it's uploading the file.
I've tried taking a few seconds off mix.mp3 and resaving it as a different filename (alters the filesize and ensures it's not corrupt), but still no joy.
The PHP page that receives the file:
I get: Array() Array()
Here is the code for my form:
I've also set upload_max_filesize to 15M in php.ini.
Anyone got any ideas / thoughts?
Cheers,
Rich
I'm currently trying to write a file uploader, but hit an interesting problem - some files just won't upload!
I've tried the following files:
testing.mp3 - 10.0mb (browser uploads it fine)
What About Bob.mp3 - 243mb (browser uploads it fine)
mix.mp3 - 10.1mb (won't upload)
When I say it doesn't upload, when I press the upload button on my form, the browser literally refreshes the page... it doesn't show the progress bar for a few seconds to indicate that it's uploading the file.
I've tried taking a few seconds off mix.mp3 and resaving it as a different filename (alters the filesize and ensures it's not corrupt), but still no joy.
The PHP page that receives the file:
Code:
print_r($_POST);
print_r($_FILES);
Here is the code for my form:
Code:
<form name="register" action="djenter.php" method="post" enctype="multipart/form-data">
<label for="djname">Your mix:</label><br />
<input class="inputo" type="file" name="mix" id="mix" value="Choose" />
<input type="submit" name="submit" id="submit" value="Submit my entry!" class="submito" />
I've also set upload_max_filesize to 15M in php.ini.
Anyone got any ideas / thoughts?
Cheers,
Rich