Jump to content

Recommended Posts

HI ppL! So i have a php code that upload files by ftp to my host. I put the domain, username and password. Ok.. But it steel not upload files bigger than 10MB... Say time out, our don´t appear nothing... i don´t know the problem... any one knows why don´t upload files bigger than 10mb???

 

 

Thanks!

Rafael Rocha - Portugal - Europe

Link to comment
https://forums.phpfreaks.com/topic/87923-ftp-upload-time-out/
Share on other sites

your php.ini file needs to be edited to allow for larger files... Don't quote me on this because I am going off the top of my head but I think it is Max_upload_size

 

Edit that to what you want your max upload to be.

 

Thanks! And do you know where i find this file in my host? and the fuction to put more max_upload_size ?

Link to comment
https://forums.phpfreaks.com/topic/87923-ftp-upload-time-out/#findComment-449847
Share on other sites

it will be in your root folder, if you dont see it create it php.ini then set these values to whatever you would like here is mine for example

 

upload_max_filesize = 100M

post_max_size = 1000M

 

 

you probably dont need that much, mine is for moie uploading...

 

you will need to close out all open explorers and restart for it to take effect after its been uploaded, i found refreshing the page doesnt work when editing this file.

Link to comment
https://forums.phpfreaks.com/topic/87923-ftp-upload-time-out/#findComment-449881
Share on other sites

it will be in your root folder, if you dont see it create it php.ini then set these values to whatever you would like here is mine for example

 

upload_max_filesize = 100M

post_max_size = 1000M

 

 

you probably dont need that much, mine is for moie uploading...

 

you will need to close out all open explorers and restart for it to take effect after its been uploaded, i found refreshing the page doesnt work when editing this file.

 

In the file php.ini just:

 

upload_max_filesize = 100M

post_max_size = 1000M

 

no more tags?

 

Link to comment
https://forums.phpfreaks.com/topic/87923-ftp-upload-time-out/#findComment-449883
Share on other sites

you may also need to edit htaccess if that doesnt work, i found it worked without editing htaccess.. here is the response i got when i asked the same question

 

You can change the upload file size by doing the following:

 

Put the following in a regular text file named php.ini in the same folder as

the upload script:

 

upload_max_filesize = 5M

post_max_size = 5M

 

Replace the 5 with whatever size you want. If you are letting other people

upload, a size cap protects your storage space from abuse/overuse.

 

If you want all your site folders to have the same setting, put the php.ini

file in public_html folder.

 

You will then need to add this line to a .htaccess file:

(Please replace "yourusername" with your cpanel user name an add to the end of the comand line the folder(s) to the location of the php.ini file - Also there is a space between path and /home)

 

suPHP_ConfigPath /home/Yourusername/public_html

 

--

 

 

Link to comment
https://forums.phpfreaks.com/topic/87923-ftp-upload-time-out/#findComment-449892
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.