8
0
mirror of https://github.com/weiss/ngx_http_upload.git synced 2026-07-31 14:54:32 +00:00
Commit Graph

13 Commits

Author SHA1 Message Date
Holger Weiss 2100ca5d66 Apply file name sanitization for GET requests
Perform the same file name sanitization for GET requests as for PUT
requests.
2018-07-20 23:34:34 +02:00
Holger Weiss 482653aa5c Copy license terms back into upload.pm file
The license is short enough.
2018-07-20 23:33:28 +02:00
Holger Weiss 6a99217e34 README.md: Tell wget what file name to create 2018-07-19 21:52:03 +02:00
Holger Weiss a3e951d93d Improve error handling 2018-07-19 21:35:56 +02:00
Holger Weiss 0f7e5a4b35 Add recommendation regarding the "root" path
If the specified document "root" path is on the same file system as the
"client_body_temp_path", temporary files holding request bodies can be
renamed rather than copied.
2018-07-19 19:43:42 +02:00
Holger Weiss bb69b6a934 Move license terms into LICENSE.txt file 2018-07-19 19:28:10 +02:00
Holger Weiss 01a39884c8 Move documentation into README.md 2018-07-18 23:12:33 +02:00
Holger Weiss c32bea422d Add copyright and license text 2018-07-18 22:35:48 +02:00
Holger Weiss bd99b4a43c Split storing the PUT body into separate functions
For better readability, use different functions for storing the PUT body
depending on whether or not Nginx wrote it to a temporary file.
2018-07-18 21:48:24 +02:00
Holger Weiss 3cc33e81a6 Don't respect "umask" while setting permissions 2018-07-18 21:21:31 +02:00
Holger Weiss b9141ef899 Avoid copying of the PUT body if possible
In the case where Nginx wrote the PUT body to a temporary file, try to
rename() that file instead of copying the data.
2018-07-18 20:52:15 +02:00
Holger Weiss ee9c39ca6f Avoid calling $r->request_body repeatedly 2018-07-15 21:36:29 +02:00
Holger Weiss 18211ea7a0 Initial import 2018-07-15 21:34:20 +02:00