valsab
November 20, 2023, 1:06pm
1
when uploading a video on my deployed website, I get an 401 error. In the networktab the response is
“cloud_name is disabled”.
According to the api-url: https://api.cloudinary.com/v1_1/undefined/video/upload?upload_preset=undefined
the cloudname as well as the upload preset are undefined.
I appreciate any help, to make the video upload work.
Val
I might want to add that my environmental variables are saved in the .env.local file and you can find the code embeding the handling of the upload attached. If more info is needed, let me know.
It’s usually helpful to also post your fly.toml
and Dockerfile
, so people can see what framework you’re using (NextJS?).
Also, the .dockerignore
in this case—since .env.local
is often excluded by that.
valsab
November 22, 2023, 11:14am
3
Hello, it turned out that I was using the environmental variables within a client component, which may have caused the problems.
Thank you for reaching out to me.
system
Closed
November 29, 2023, 11:15am
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.