Hello Lorentz Yeung,
Greetings! Welcome to Microsoft Q&A Platform.
If you were able to upload files to your Azure Blob Storage before, but now you are facing issues, there might be several reasons for this behavior. Here are some common troubleshooting steps you can take to diagnose and resolve the issue:
- Check Azure Storage Account Configuration: Ensure that your Azure Blob Storage account is properly configured and accessible. Double-check the account name, account key, or connection string you are using in your application to access the storage account.
- Check CORS Configuration: If you are uploading files from the client-side, ensure that Cross-Origin Resource Sharing (CORS) is configured correctly on your Blob Storage account. CORS rules might have changed, causing issues with your application's ability to upload files. Review and update CORS settings as needed.
- Test with Different Blob Storage Account: Create a new Blob Storage account (if possible) and try uploading a file to it using same method. This can help identify whether the issue is specific to the storage account or if it's related to your application's code or configuration. Recreate another storage with the region closest to your old storage, enable CORS for all methods and generate new SAS URL.
- Review Changes: If the issue persists, review any recent changes you made to your code related to file uploads. Compare it with a previous version that was working correctly to identify any potential issues or regressions.
- Check for Network or Firewall Issues: Ensure that there are no network or firewall issues that might be preventing your application from accessing the Blob Storage account.
- Update SDK or Libraries: If you are using any Azure SDK or third-party libraries to interact with Azure Blob Storage, make sure you are using the latest versions. Older versions might have compatibility issues.
refer - https://learn.microsoft.com/en-us/troubleshoot/azure/azure-storage/blobs/connectivity/invalid-blob-or-block-content-or-invalid-block-list for more troubleshooting steps.
Please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.