Editor.NET uploaded file name becomes full path in Edge

Editor.NET uploaded file name becomes full path in Edge

szxszx Posts: 11Questions: 4Answers: 0

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

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    How odd that they are different! I've logged this to be included in the next release of Editor.

    Regards,
    Allan

This discussion has been closed.