dpd-fileupload icon indicating copy to clipboard operation
dpd-fileupload copied to clipboard

Individual GET requests no longer work on current release

Open ifennna opened this issue 6 years ago • 1 comments

Individual GET requests to uploaded files no longer work.

A request to http://localhost:2403/upload/filename.extension returns an empty response with the following headers:

HTTP/1.1 200 OK
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0
Content-Type: text/html; charset=utf-8
Date: Fri, 18 Jan 2019 11:25:31 GMT
Connection: keep-alive
Content-Length: 0

The uploaded file still shows up in the collection and in the upload folder though.

ifennna avatar Jan 18 '19 11:01 ifennna

So apparently this has been fixed in commits after the 0.0.17 release. At the moment, anyone having this problem could pull directly from the repo like so:

npm install git+https://github.com/NicolasRitouet/dpd-fileupload.git

I think the changes made deserve a new release, however. Especially since the version available on npm is broken. So I'll leave the issue open and edit the header.

ifennna avatar Jan 21 '19 08:01 ifennna