I have in the server-side project a static files' folder to upload images, when I published this project, it gives me this error:

Error I got in IIS

The folder I'm talking about is here:

This is where I have the static files folder

And this is how I'm telling the application that I have a static files folder in the server-side:

       app.UseStaticFiles(new StaticFileOptions
        {
            FileProvider = new PhysicalFileProvider(
            Path.Combine(Directory.GetCurrentDirectory(), "upload")),
            RequestPath = "/upload"
        });

I hope some of you guys can help me.

1

There are 1 answers

0
Ismael On BEST ANSWER

You just have to create the upload folder by your own in your application folder.