문제

I would like to send file(s) with xhr from the user browser to remote FTP server without saving file to my server.

Is it possible? How can I do it? I am using PHP backend.

도움이 되었습니까?

해결책

I'd start with an ajax upload script. I'm sure you can find one already written. Carefully read it and stop at the point where there is a temporary file on your server. (I know, technically this violates one of your specifications, but it's only temporary) Then use ftp_put() to upload it. Then delete the temp file or just let it die on it's own.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top