-
Notifications
You must be signed in to change notification settings - Fork 9
docs(cookbook): file upload recipe #143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| ### Problem to solve | ||
|
|
||
| You want to upload file to the server |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing dot. Maybe we should call it more precise "you want to upload file to database"?
|
|
||
|
|
||
| #### Prepare socket | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should have it more direct like:
- create socket
s create test123 - edit
socket.yml - add form-data dependency
npm install --save ...
I'm a little bit concerned that newbies might be lost somewhere on the way...
|
|
||
| ``` | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 lines of break?
|
|
||
|
|
||
|
|
||
| #### Create client side code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"client-side"
|
|
||
| #### Create client side code | ||
|
|
||
| Let's assume that you have a simple form in html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"HTML"
|
|
||
| ``` | ||
|
|
||
| After submitting the file, data object will store link to your file hosted on cloudfront. File size limit is 128 MB. No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File is hosted on "S3" behind the "CloudFront" - I'm only not sure if it is relevant for the end user. Upload limit to the script is 6MB. Limit for file upload from inside the Socket script is 128MB.
Codecov Report
@@ Coverage Diff @@
## master #143 +/- ##
==========================================
- Coverage 34.73% 28.66% -6.08%
==========================================
Files 118 102 -16
Lines 4623 2864 -1759
==========================================
- Hits 1606 821 -785
+ Misses 3017 2043 -974 |
|
@mkucharz - updated |
No description provided.