Ayman
Ayman

Reputation: 95

php upload_max_filesize problem

am working on a website and i have a big problem when i tried to upload files, i increase upload_max_filesize and post_max_size and the code still understand only as a max. 10M. for any different folder php accepts 100M. but inside the site folder ( which am working inside) it doesn't understand it. i check for local php.ini or .htaccess.

note: am running a linux server.

Upvotes: 1

Views: 501

Answers (5)

Ayman
Ayman

Reputation: 95

Thanks guys, I found the problem. i don't know why is the file is not visible for me /public_html/site/.htaccess

i tried to overwrite it, and it's seems to be working.

Thanks a lot for efforts.

Upvotes: 0

powtac
powtac

Reputation: 41070

Do you run Apache with mod_security? Then check if the LimitRequestBody is in affect. Here is a good tutorial about Settings for uploading files with PHP.

Upvotes: 1

Plupload can split large files into smaller chunks. See the documentation.

Upvotes: 1

You can use JumpLoader, which is a Java applet, and it is able to split large files into partitions, and upload them one by one. Then a PHP script rebuilds the original file from the uploaded partitions on the server.

Upvotes: 1

Aurel Bílý
Aurel Bílý

Reputation: 7983

For uploading bigger files I would suggest a dedicated uploader plug-in.

Like a SWF of Java. For these reasons:

  • Security - you can easily encode the sent data (encoding ByteArray in AS3.0 is very easy, can be even tokenized so it is hard to intercept the stream)
  • Reliability - with simple HTTP requests it is hard to actually monitor the upload progress, so the user might choose to close the uploaded (because he thinks it got stuck)
  • User friendly - again, progress bar
  • Not limited by server - if you accept it directly with PHP custom code, you won't need any configuring for annoying things like max file size on upload.

On server-side you will need either a Socket listener, or an HTTP tunnel if unavailable.

Upvotes: 1

Related Questions