Comments (2)
After more digging of the code I found this:
Lines 211 to 224 in 320ac57
Can I simply return that string to the frontend for them to use on a signed upload request?
from cloudinary-go.
Hi Danny,
Yes, the output from that function should be a valid signature for a signed upload, and passing the signature string from the backend to the frontend is the same method we recommend for similar cases, like using our Javascript Upload Widget with signed upload where the signature comes from some backend code.
That said, the parameters sent on the API call must match the parameters used to create the signature, and the highlighted function is also setting the timestamp that's used on the request, so you need to pass the same timestamp to your frontend also and use it on the API call ( e.g.
cloudinary-go/api/uploader/upload.go
Line 103 in 3ea19ca
If there's any problem with the signature you send on an API call, note that our error response shows the string we signed when checking the provided signature, so it's often easy to see why the signature didn't match
Thanks,
Stephen
from cloudinary-go.
Related Issues (18)
- NextCursor field in DeleteAssetsResult HOT 1
- Request params passed in for signing in Upload API request are not filtered in accordance with documentation HOT 1
- Promoted fields HOT 1
- Possible incorrect param for a function HOT 3
- Including Moderation in ExplicitResult (UploadResult). HOT 2
- Custom http.Client or http.RoundTripper HOT 1
- cloudinary.NewFromURL does not work for custom domains HOT 3
- Signing Parameters overwrites existing timestamp HOT 1
- Unable to download a zip archive of multiple files HOT 3
- Include step go mod init before go get HOT 1
- NextCursor field in GetTransformationResult not being sent in response. HOT 2
- Introduce custom error types HOT 5
- Concurrency issue with analytics HOT 3
- Base64file uploading to cloudinary is not working HOT 2
- Context metadata is unavailable from admin.SearchAsset HOT 1
- Add support for `PlaybackURL` in `UploadResult` on video upload HOT 5
- Getting an error: invalid character '<' looking for beginning of value
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudinary-go.