How to upload files through FTP

Source: Internet
Author: User
I uploaded files via FTP through ftp written on the webpage. However, during uploading, I found that all the small files can be uploaded to the ftp server smoothly, however, if a large document (it seems to be more than 2 GB) is displayed: ftp_nb_fput () expectsparameter3toberesource, booleangiv.pdf what is going on? How can this problem be solved? Expert guidance! ------ Solution ------- upload files through FTP
I uploaded the file via ftp written on the webpage, but I found that all the small files can be uploaded to the ftp server smoothly. However, if the file size is large (it seems to be larger than 2 GB) it will show: ftp_nb_fput () expects parameter 3 to be resource, boolean given in what is going on? How can this problem be solved? Expert guidance!

------ Solution --------------------
The resource type parameter to be passed by the ftp_nb_fput () function is incorrect. A Boolean value is given. Check your code

Do I like to claim to be a girl after xx? Do you like to give it a feeling?
------ Solution --------------------
Discussion

Parameter error? No, but all small documents can be uploaded. I tried again just now. an error occurs when the document is uploaded more than 2 MB. I changed php. the maximum Upload volume allowed in ini has been restarted, but it still does not work!
I am not a self-proclaimed little girl, because a big brother told me that, in this case, more Big Brother can help me, just want to solve the problem, not much else. If this is wrong, I will not do it in the future. sorry!

------ Solution --------------------
No matter whether it is or not, I don't care.
Back to your issue, there have been some abnormal feedback on the php Upload of more than 2 GB files, but I'm not sure whether this applies to the php ftp mode, therefore, if the code does not have a problem, it may also cause errors, or if the code does not have an error, but the file cannot be uploaded.
Php. ini and then modify max_execution_time = 0
And memory_limit = (1G 256 M ratio)

Restart apache and try again.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.