Skip to content

Conversation

@maciejkorsan
Copy link
Member

No description provided.


### Problem to solve

You want to upload file to the server
Copy link
Member

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

Copy link
Member

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...


```


Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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-io
Copy link

Codecov Report

Merging #143 into master will decrease coverage by 6.07%.
The diff coverage is n/a.

@@            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

@maciejkorsan
Copy link
Member Author

@mkucharz - updated

@mkucharz mkucharz added the DOCS label Feb 17, 2018
@mkucharz mkucharz merged commit ba06738 into master Feb 17, 2018
@mkucharz mkucharz deleted the docs/cookbook-upload branch February 17, 2018 09:18
@maciejkorsan maciejkorsan restored the docs/cookbook-upload branch February 26, 2018 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants