PHP file upload timing out

0 Jeremy Benson · July 3, 2014
Hey,

I've encountered a new problem I can't solve. My uploads are timing out, and I can't figure out why... I've uploaded files before, so it's kind of bewildering. Maybe a typo, or left something out? I've already set some of the settings in php.ini.

upload_max_filesize = 256M
post_max_size = 256M
max_input_time = 60
memory_limit = 128M

Here's my page and form.


<?php
require('mechanics/scripts/classes/php/cfile.php');

if($_SERVER['REQUEST_METHOD'] == "POST")
{

$fileHelper = new cfile($_FILES);

}

?>
<!DOCTYPE html>
<html>

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Untitled 1</title>
<style>

</style>
</head>

<body>
<form action="test.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="500000"/>
<input type="file" name="profileImage" /><br /><br />
<input type="submit" value="submit" />
</form>
</body>

</html>



Post a Reply

Replies

Oldest  Newest  Rating
0 Jeremy Benson · July 4, 2014
This was a ridiculous error on my part. I'll post what I did so others wont make the same mistake. Make sure you pay close attention to the error being thrown, lol. I was mistaking a 408 error with a php script error. It was because I was testing the page in web expression instead of Wamp server where my actual php.ini settings were.
  • 1

PHP

107,166 followers
About

Server-side, HTML embedded scripting language used to create dynamic Web pages.

Links
Moderators