I
I
IsaevDev2016-08-29 22:21:07
PHP
IsaevDev, 2016-08-29 22:21:07

How to transfer files after upload?

The task is to accept files via POST on one instance, check them and immediately transfer them to another instance for compression. The files are accepted by PHP, so they are saved as temporary files. Is it possible to transfer them without saving via move_uploaded_files?
And the second, main part of the question, how to accept them and save them on another server without php? Can nginx accept them and save them with the right extension?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
evnuh, 2016-08-29
@IsaevDev

Nginx file upload - https://coderwall.com/p/swgfvw/nginx-direct-file-u...
And the file is already saved on the first server, most likely to the /tmp folder. The move_uploaded_files function does not save them, but, as you might guess, it moves them. You can't use it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question