Unable to Render Files Correctly Using the Multi URL Picker (MIME type Issue)
Hi all, I'd appreciate some advice.
I have Umbraco 8:18.4 running and I am linking the Multi URL Picker to a media item (not standard documents), but when the link is clicked I get the following message:
"The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."
Sounds like the issue is server related rather than Umbraco related. Are you hosting the site in IIS?
If the answer is yes, you probably need to add .rfa files as a mimetype in your site configuration
IIS will not return file types that are not added to the element or
that have mappings in the element by default. This behavior prevents
unauthorized access to files that do not have mappings in the IIS
configuration settings.
Unable to Render Files Correctly Using the Multi URL Picker (MIME type Issue)
Hi all, I'd appreciate some advice.
I have Umbraco 8:18.4 running and I am linking the Multi URL Picker to a media item (not standard documents), but when the link is clicked I get the following message:
"The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."
An example URL Link is: https://abahughes-vender-dev.azurewebsites.net/media/j1qhvihe/bommel-bulb-lamp-birch.rfa
I am using the standard Umbraco code from the documentation to render the files.
I'd appreciate some advice as to how to handle this.
Thanks in advance,
Don
your code needs to be wrapped in a code block for us to see it, use the {} button after highlighting your code
My apologies, I have now updated the code above.
Your code looks fine, does it do the same if you link a different document type ( a pdf or text file etc)?
No, with the standard file types it is fine.
If I zip the files then I can download it. But these unusual file types will not download.
Sounds like the issue is server related rather than Umbraco related. Are you hosting the site in IIS?
If the answer is yes, you probably need to add .rfa files as a mimetype in your site configuration
We are using Azure WebApps. Do you happen to have any advice on how to do this with Azure WebApps?
You should be able to add them in the web.config
https://paulhale.com/set-mime-types-for-azure-web-app/
Thank you for your help. I added the custom mime types and that worked like a treat.
is working on a reply...