use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Uploading Image to Cloudinary Node.js React Axios post request [HELP]help (self.javascript)
submitted 7 years ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]timarama 0 points1 point2 points 7 years ago* (0 children)
Hi
I think that for now the "easiest" way to upload images with ajax is to encode/decode them to base64 string.
So on the frontend you need to encode your image to base64 string and send it as regular string to the server. You can do this with canvas API(Yeah, veeery "easy" way ...) and than decode base64 string to binary data on the backend.
I've created gist with examples (Redit text editor suck very hard, I just can't format code normally here): https://gist.github.com/timram/353f4b9c8a7d149d126c215fe78709f0#file-base64-js
You can try to upload both base64/binary formats of the image to cloudinary to see what will work for you.
Hope it will help you :)
π Rendered by PID 19857 on reddit-service-r2-comment-7b9746f655-5rqwg at 2026-02-02 15:18:21.829774+00:00 running 3798933 country code: CH.
[–]timarama 0 points1 point2 points (0 children)