-
Notifications
You must be signed in to change notification settings - Fork 155
Closed
Description
I am having an issue of being unable to use the loopback-component-storage to do uploads. It does not work with IBM COS or the file system. I did not create any custom remote method but am using the prototype upload method provided by the connector.
Error I am getting:
[1] Error: Request aborted
[1] at IncomingMessage.<anonymous> (/Users/jocelynkong/Watson_Practice/Business-Solutions-Dev/document-management/node_modules/formidable/lib/incoming_form.js:120:19)
[1] at emitNone (events.js:105:13)
[1] at IncomingMessage.emit (events.js:207:7)
[1] at abortIncoming (_http_server.js:410:9)
[1] at socketOnClose (_http_server.js:404:3)
[1] at emitOne (events.js:120:20)
[1] at Socket.emit (events.js:210:7)
[1] at TCP._handle.close [as _onclose] (net.js:547:12)
[1] Unhandled error for request POST /filestore/wca-jocelyn/upload: Error: Request aborted
[1] at IncomingMessage.<anonymous> (/Users/jocelynkong/Watson_Practice/Business-Solutions-Dev/document-management/node_modules/formidable/lib/incoming_form.js:120:19)
[1] at emitNone (events.js:105:13)
[1] at IncomingMessage.emit (events.js:207:7)
[1] at abortIncoming (_http_server.js:410:9)
[1] at socketOnClose (_http_server.js:404:3)
[1] at emitOne (events.js:120:20)
[1] at Socket.emit (events.js:210:7)
[1] at TCP._handle.close [as _onclose] (net.js:547:12)
Sample CURL response I am using:
curl -X POST \
http://localhost:3000/api/filestore/wca-jocelyn/upload \
-H 'Accept: multipart/form-data' \
-H 'Cache-Control: no-cache' \
-H 'Postman-Token: fb26baca-9d56-7d8c-5916-f66f403a2ea8' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
-F file=@/Users/jocelynkong/Watson_Practice/Business-Solutions-Dev/CNC/experimental.html
Sample project: https://github.ibm.com/Jocelyn-Kong/lb-debug
Metadata
Metadata
Assignees
Labels
No labels