Ian Josh Lim
Ian Josh Lim

Reputation: 23

Uploaded images not displaying after publishing on azure

Good day everyone I have a Web App created using Entity framework it has an upload feature and the upload feature works on localhost. Now after publishing to azure the site is working however the uploaded images are not displaying when I try to upload a new image it gave an "An error occurred while processing your request". Connection string is correct since other data are showing I changed the permission of the upload folder then republished still the same. Looking at the dev console it is showing failed to load resource. But why? Do I need to configure azure? Any help is appreciated thank you!

Upvotes: 1

Views: 955

Answers (1)

Ian Josh Lim
Ian Josh Lim

Reputation: 23

What I did was look at azure website's Kudu console (something I am not aware of) and upon looking at the Kudu console I realized that my upload directory is not included which is why the images are not loading it doesn't exist. I don't why it is not included but eventually I created a new upload directory at the kudu console and manually transfer the photos after that the photos are now displaying and upload is now working. For references: reference 1 reference 2

Upvotes: 1

Related Questions