8
0
mirror of https://github.com/weiss/ngx_http_upload.git synced 2025-07-01 10:19:40 +00:00

19 Commits

Author SHA1 Message Date
Holger Weiss
c4d3486b12 Don't stumble over undefined request arguments
Don't yield an "unitialized value" error if Nginx didn't define the
method that returns the request arguments.
0.2
2020-07-02 08:25:35 +02:00
Holger Weiss
bc00eeec60 Use UTF-8 for non-ASCII characters in file names
Store uploaded files using UTF-8 path names.

Note that this breaks HEAD/GET requests against files uploaded using
earlier versions of this module.

Closes #5.
2019-07-25 18:21:01 +02:00
Holger Weiss
c3492741ae Merge remote-tracking branch 'processone/pr/4'
* processone/pr/4:
  Add instruction for Docker
2019-04-29 17:56:56 +02:00
Steven Roose
61fe80b6f6
Add instruction for Docker 2019-04-29 15:53:05 +01:00
Holger Weiss
41ce1b351f Add "Content-Type" to Access-Control-Allow-Headers 2018-09-08 16:52:33 +02:00
Holger Weiss
e8be732de6 Add Content-Length header field
Clients might expect a Content-Length header field for HEAD responses.
Including this header field also allows the use of byte ranges (and
disables the use of chunked transfer encoding for the GET response).
0.1
2018-07-21 00:39:05 +02:00
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