[Solved] File upload filetype not respected in Umb...
# help-with-umbraco
t
Using Umbraco 13.6.0 (latest 13) in Umbraco Cloud, local development. I have uploaded a json file. File uploaded says Type
json
in Media section (first screenshot). In my content being edited I have a Media Picker, with a specific accepted types (second screenshot). This type is a Media type (third screenshot), where the umbracoFile upload field type is a custom File Upload field (fourth screenshot). This is configured to allow
json
and also
JSON
(added this later to test) for this file upload (fifth screenshot). However, trying to use this, I am NOT able to pick any uploaded json file. See sixth screenshot - you can't see my mouse in the screenshot when I hover over the files, but the cursor becomes the 🚫 symbol. I have also had the file picker allow everything previously and saved a json file to it, and when changed afterwards to require JSON, the content saved has a warning of not being allowed. Am I missing something obvious here or doing something wrong? Or is this a bug? https://cdn.discordapp.com/attachments/1342432071716704256/1342432072014364724/image.png?ex=67b99ccb&is=67b84b4b&hm=26e25fad8c82f33525edd2bd5a6012589826dd66bc800dc9fac83f0b3da3c5e3& https://cdn.discordapp.com/attachments/1342432071716704256/1342432072265891900/image.png?ex=67b99ccb&is=67b84b4b&hm=a34e48fafbe391c882d294082562421e34cc3f8f4a6e3e5d4402c8c43d2ec83a& https://cdn.discordapp.com/attachments/1342432071716704256/1342432072517812256/image.png?ex=67b99ccb&is=67b84b4b&hm=55f3028ee49b046539c07742002ec0b368ff249149ddbb841f2fb682803879cb& https://cdn.discordapp.com/attachments/1342432071716704256/1342432072886784071/image.png?ex=67b99ccb&is=67b84b4b&hm=ac45bb8df3c4c9c2023ed888ee987e5fcc329f20f732911b03a94d19e9871557& https://cdn.discordapp.com/attachments/1342432071716704256/1342432073129918464/image.png?ex=67b99ccb&is=67b84b4b&hm=7306b3bd82134238510993df555ab0ff93ef09a6c4c47b67cc44e58fb747fba2& https://cdn.discordapp.com/attachments/1342432071716704256/1342432073402814484/image.png?ex=67b99ccb&is=67b84b4b&hm=e2ed9a2791db04d263f3a89617a5fc73fc5005c42c54abca4173434a4fe35b06&
Example when I do the switcharoo of first allowing any type, saving a file selection, and then only allowing json types. https://cdn.discordapp.com/attachments/1342432071716704256/1342432911869218876/image.png?ex=67b99d93&is=67b84c13&hm=5c0cdc69cb43da9dc6310a1f4d42d6cb767a2904bee68161c92de1d3bb839bdc&
Same result of course with any filetype I try with, pdf, txt etc
Ok I figured this out, user error on my end! I had these files uploaded as regular files, initially. So these files were already of media type "file", and not my custom media type, so I could therefore not select them, even though the file ending was technically correct. I'll leave this up for whatever lost soul ends up in the same brainfart in the future!
22 Views