Web App file upload error

시냅스톤 0 Reputation points
2023-09-05T05:38:00.0266667+00:00

I deployed the spring boot app on the web app (linux) service.
This deployment includes file uploads.
It is supposed to temporarily save the file to the web service root and upload it to the cloudflarer.
There is an error when uploading this file. I want to know how to log on to this service and how to fix it.

I suspect that there is an error in the temporary saving part when uploading a file.
Or I suspect that uploading files outside is blocked by something.

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,173 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 17,731 Reputation points Microsoft Employee Moderator
    2023-09-09T02:28:39.2633333+00:00

    @시냅스톤 To troubleshoot the file upload error in your Spring Boot app deployed on the Web App service, you can try the following steps:

    Check the logs: You can view the logs of your Web App service by going to the Azure portal, selecting your Web App service, and clicking on "Log stream" under the "Monitoring" section. This will show you the real-time logs of your app, which can help you identify any errors that are occurring during the file upload process.

    1. Check the file upload code: Review the code that handles the file upload process in your Spring Boot app. Make sure that the file is being saved to the correct location and that the correct permissions are set on the directory where the file is being saved. Also, make sure that the code is properly handling any errors that may occur during the file upload process.

    Check the firewall settings: If you suspect that uploading files outside is blocked by something, check the firewall settings of your Web App service. Make sure that the necessary ports are open and that any firewall rules are not blocking the file upload process.

    Check the file size limit: Check if there is a file size limit set on your Web App service. If the file you are trying to upload exceeds this limit, the upload will fail.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.