Commit Graph

42 Commits

Author SHA1 Message Date
Agnes Lin 6f8e4284f5 chore: update copyrights years 2019-05-07 09:41:29 -04:00
Alex Owen 30e8ee0a09 Pass through AWS/S3 specific options 2019-03-28 08:52:48 +00:00
Matteo Padovano 83a28273d4 add support to promise 2019-01-12 00:23:37 +01:00
Youcef Mammar 0562cd03d4 {download,upload}Stream: removed callback from doc
closes #254
2018-08-23 06:27:33 +02:00
Cory Gottschalk 970ecc7901 Updated "getFile" to send a 404 for ENOENT errors
getFile sends a 500 error response when the requested file cannot be
found, but the status code probably should be 404. This change sets
the status of the error to 404 when the error code is "ENOENT".
2018-06-14 15:19:53 -07:00
Remi Beges c105f8a9ae Add some debug strings to handler and service 2018-01-30 10:29:59 -05:00
Raymond Feng 47d555798c Declare container parameter for swagger spec
Without this change, generated Swagger spec for the upload operation
does not have `container` parameter even it's a variable on the path.
As a result, the sepc fails validations.

An optional `container` is added to the remote method. Conditional
check is added to ensure backward compatibility.
2017-08-30 13:45:19 -07:00
Miroslav Bajtoš 7cf4d883ef
Mark HTTP path parameters as required
Per Swagger spec 2.0, parameters coming from the path must be marked
as required.

Before this change, the Swagger spec produced by loopback-swagger
was not valid because path parameters were optional.

Note that this commit does not fix the problem of the "uploaded"
method which does not have any swagger-supported parameters now,
and therefore the swagger spec will remain invalid (but with less
errors).
2017-08-30 15:09:02 +02:00
Raymond Feng 2cea6a0c8d Merge branch 'master' of https://github.com/hgouveia/loopback-component-storage into hgouveia-master
# Conflicts:
#	lib/storage-handler.js
#	test/upload-download.test.js
2017-03-01 15:32:11 -08:00
Raymond Feng 4ef64a8d50 Merge branch 'max-fields-size-override' of https://github.com/obernal/loopback-component-storage into obernal-max-fields-size-override
# Conflicts:
#	lib/storage-service.js
2017-03-01 15:19:52 -08:00
Raymond Camden ec959d2c38 fix lint 2017-02-02 09:19:28 -06:00
Raymond Camden 907f83ac3a Support nameConflict and makeUnique options 2017-02-01 13:16:53 -06:00
Amir Jafarian 4c2751a2a4 Fix linting errors 2016-10-19 11:36:39 -04:00
Amir Jafarian 7900d48126 Auto-update by eslint --fix 2016-10-18 18:06:55 -04:00
Ryan Graham 728a1986df
update/insert copyright notices 2016-05-03 16:18:18 -07:00
Rand McKinney 9f31877872 Update storage-service.js
Clean up download API doc.
2016-04-27 16:05:11 -07:00
Rand McKinney 6bf9361451 Update storage-service.js
Doc: add missing parameter to API docs, per #115
2016-03-29 15:02:23 -07:00
Oscar Bernal 6ed00d2c88 added maxFieldsSize override to formidable limit 2015-12-23 09:15:44 -05:00
Raymond Feng fdb4c0464e Add range support 2015-11-23 17:16:48 -08:00
Rand McKinney 2f8b11cee4 Fix link to docs 2015-09-15 11:05:22 -07:00
Raymond Feng 09cb66d062 Merge pull request #43 from jury89/feature/uploadStream-fix-cb
is not necessary to pass cb to pkgcloud
2015-03-02 08:38:07 -08:00
Benjamin Boudreau 95baaff716 Adding support for ACL, Content-Type, Max File Size and allowd Content-Types 2015-02-10 09:26:14 -05:00
Jury D'Ambros 38e1503c30 removed callback from downloadStream method 2015-02-03 09:36:41 +00:00
Jury D'Ambros b3f0d757c6 is not necessary to pass cb to pkgcloud 2015-02-02 17:04:55 +00:00
Benjamin Boudreau ec4000745a Adding key renaming support on Service.upload and Handler.upload 2015-01-30 14:30:35 -05:00
Timo Saikkonen 169ee1be21 #4: Return a 404 if file doesn't exist
Signed-off-by: Timo Saikkonen <timo.saikkonen@gmail.com>
2014-12-25 13:21:20 +08:00
Tony Sukiennik 0a68f1df72 Update storage-service.js
Took Raymond's suggestion...
2014-10-25 22:39:45 -07:00
tonysoft 7d3c41a082 GetFiles issues
Only 2 arguments passed in to GetFiles but it was expecting 3 thus “cb”
was undefined…

File System GetFiles should handle empty “entries” array properly…
2014-10-17 15:04:32 -07:00
Raymond Feng f266024c1b Fix amazon s3 container handling
See https://github.com/strongloop/loopback-storage-service/issues/16
2014-06-24 15:53:26 -07:00
Raymond Feng c3c55c66eb Fix issue-15 2014-06-16 08:58:00 -07:00
Rand McKinney e26599e214 Doc upload and download functions 2014-04-09 17:11:36 -07:00
Raymond Feng d45cece2fa Update jsdocs 2014-04-07 18:24:11 -07:00
crandmck 2280419779 Clean up JS Doc 2014-04-07 16:43:00 -07:00
crandmck a58ed7711f Add param info to constructor JSDoc 2014-04-07 16:32:12 -07:00
crandmck bb6567c439 Work on JSDoc comments 2014-04-07 16:18:51 -07:00
Raymond Feng a5da7fc9f0 Separate the metadata in Container/File class 2014-03-28 17:55:01 -07:00
crandmck e13146bc31 Add JSDoc comments 2014-03-20 14:03:27 -07:00
Raymond Feng 9c0885aa07 Fix remoting for container/file apis 2014-02-03 10:58:37 -08:00
Raymond Feng 70f5d6dc35 Reformat code 2014-01-24 09:44:58 -08:00
Raymond Feng 0f94079082 Fix the ref to StorageService 2014-01-14 10:39:02 -08:00
Raymond Feng 9c58011530 Clean up the download method 2014-01-14 10:26:09 -08:00
Raymond Feng 13e9097ff0 Refactor the storage service 2014-01-10 11:34:37 -08:00