Editor.NET uploaded file name becomes full path in Edge
Editor.NET uploaded file name becomes full path in Edge
When using Microsoft Edge, file name uploaded (Upload.DbType.FileName) becomes full path (contains directory path).
But when using Google Chrome, it is normal file name (not contain directory path).
I checked 'Upload.cs' file line 622, and I suppose
case DbType.FileName:
q.Set(column, upload.FileName);
break;
should change to
case DbType.FileName:
q.Set(column, Path.GetFileName(upload.FileName));
break;
because HttpPostedFile.FIleName property is different from each browser.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
How odd that they are different! I've logged this to be included in the next release of Editor.
Regards,
Allan