cloudinary-examples
cloudinary-examples copied to clipboard
Update FormData and route handlers examples
This PR updates the FormData and Route Handlers examples
-
nextjs-upload-formdatademo will be- generating the signature using API route/route handlers
- uploading the image from the frontend
-
nextjs-route-handlers-uploaddemo will be- Sending the image in
FormDataformat to the route handler (app router) or api route (pages router)
- Sending the image in
Some breaking changes
Environment variables are as follows now (update in deployment - if deployed)
nextjs-upload-formdata
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=""
NEXT_PUBLIC_CLOUDINARY_API_KEY=""
NEXT_PUBLIC_CLOUDINARY_UPLOADS_FOLDER=""
CLOUDINARY_API_SECRET=""
nextjs-route-handlers-upload
CLOUDINARY_CLOUD_NAME=""
CLOUDINARY_API_KEY=""
CLOUDINARY_UPLOADS_FOLDER=""
CLOUDINARY_API_SECRET=""
@max-programming is attempting to deploy a commit to the Cloudinary DevX Team on Vercel.
A member of the Team first needs to authorize it.
hey is this still a WIP per your description?
@colbyfayock Yes, the README updates are remaining. Done. Review and let me know
Plus I'll try to update the rest of 2 remaining examples as well in this PR itself
tested both and seem to work well. push merging main to get rid of conflicts
thanks @max-programming