Commit Graph

63 Commits

Author SHA1 Message Date
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
Santiago Osorio 8eaf9f54a0 Expose `originalFilename` property
Filename is replaced when `getFilename` is set in the options, this commit sets a new property called `originalFilename` to keep the original filename (only works when you upload the file, after that you need to save it in a model).
2016-01-06 10:36:36 -06: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 e8c76eef93 Capture writer error 2015-07-31 12:06:07 -07:00
Oleksii Strutsynskyi 3158e3e479 Bugfix: Cannot read property 'forEach' of undefined 2015-06-11 11:28:34 -04:00
Raymond Feng ab1ed48674 Add var 2015-06-08 15:30:43 -07:00
ningsuhen f220141419 Fix for issues - #58, #23 & #67 2015-06-01 13:25:04 +05:30
Raymond Feng 1e4a5c9f2a Merge pull request #55 from leandropio/patch-1
Expose file size on success callback
2015-04-21 12:59:25 -07:00
Yazhong Liu 24f24f12a2 this.options is undefined, should use options 2015-04-12 00:24:23 +08:00
Leandro e035e4fd4e Expose file size on success callback
Just expose the file size through the file object that later will be sent as succes callback attribute (line 160). This way if somebody needs to persist the file metadata in another model now it will exist the whole basic pack: Container, Name, Type and now Size.
2015-03-29 21:06:53 -03: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 55997f8a9f Adding error handler on upload stream 2015-02-27 14:06:49 -05: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
Raymond Feng 60938c245a Fix deprecation 2015-01-30 11:34:46 -08: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
Tony Sukiennik a03b9c805e Update index.js
Took suggestion from Raymond...
2014-10-25 22:38:04 -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
crandmck dc3011c800 Work on JSDoc comments 2014-04-07 16:17:19 -07:00
Raymond Feng f9d9fe4061 Fix the metadata interception 2014-03-31 16:30:35 -07:00
Raymond Feng dc90d1024e Remove the unused models 2014-03-28 22:11:44 -07:00
Raymond Feng c00b48cc6f Filter out senstive information from files 2014-03-28 22:07:46 -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 eb0d9a11bf Set Content-Type based on the file path 2014-01-29 22:39:01 -08:00
Raymond Feng 70f5d6dc35 Reformat code 2014-01-24 09:44:58 -08:00
Raymond Feng 160e1a44bf Address some of the PR comments 2014-01-24 09:32:48 -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
Stephen Belanger 50ce215142 Fix bug making provider fallthrough to pkgcloud when a directory doesn't exist, making a very unintuitive error. 2013-10-29 17:54:32 -07:00
Raymond Feng 18b27ff320 Fix for https://strongloop.atlassian.net/browse/SLA-316 2013-07-24 12:07:46 -07:00
Raymond Feng 08de6ea171 Rename schema/adapter to dataSource/connector 2013-07-23 13:28:41 -07:00
Raymond Feng d409a4bd87 Fix for SLA-213. The stream from pkgcloud doesn't make callbacks 2013-07-10 13:08:18 -07:00
Raymond Feng 3fc500a37c Add a connector for storage service 2013-07-03 16:58:20 -07:00
Raymond Feng 4edfaae2de Add an example for asteroid remoting 2013-07-02 18:10:23 -07:00
Raymond Feng ad41d47b71 Refactor the code to use StorageService as the facade 2013-07-02 08:57:53 -07:00