Hello
I have 2 topics concerning the KendoUI Upload Widget:
1. Drag of uploaded image in Safari browser (Mac) starts upload
I have a DIV area onto which users can upload images. In the background I create a thumbnail of that and display it in the mentioned DIV area. Recently I realised in Safari browser (Mac) that if I drag such a displayed thumbnail onto that DIV it will upload that thumbnail too as an image and therefore a copy will be created. I would like to avoid that. Let's say:
- Ok: Drag images from outside into upload DIV
- Not ok: Drag thumbnail displayed in the DIV onto the same DIV that starts an upload
Since this "problem" exists not in Firefox and Safari I assume this is a browser behaviour. Question is if I can check whether a thumbnail will be re-uploaded or an image from outside.
2. Case sensitive upload validation
I have created a filter upload be restricting to specific image types:
allowedExtensions: [
'.jpg'
,
'jpeg'
,
'.png'
,
'.gif'
,
'.svg'
,
'.mp3'
,
'.mp4'
],
It works fine and does what it should. Recently a customer told me he can't upload his JPG-File. I checked that and found out that the extension was uppercased (.JPG). After renaming his image to 'xxx.jpg' I was able to upload the image. That tells me that the extension check is case sensitive. Of course I have enhanced the allowedExtenions list with all valid image extensions in upper case which will cover most situations. But what if someone wants to upload an image called 'image.Jpg'? Technically it is correct but will be prohibited.
All over: If it doesn't break the KendoUI security rules it would be nice if the extension check is not checking for case sensitive.
Regards