I want to manually upload an image into specific folder in the Sitecore Media Library.
While uploading the image I am getting an error saying An error occurred while uploading a file. The reason may be the that the file does not exist or the path is wrong.
Please see the screenshot below:

I have tried to change some configuration settings in the Sitecore.Speak.Applications.config file but still having the same issue.
Please advise what can be causing this error.
I saw a similar error in the past and in my case it was caused by a duplicate item name in the Media Library folder.
Image names in each media folder should be unique. If you try to upload a file with the name that already exists in the selected folder, Sitecore will return the message saying "the file does not exist or the path is wrong". If this is the problem, you will see the error
Sitecore.Exceptions.DuplicateItemNameExceptionin Sitecore log file:UPDATE:
I double checked when this error message is used, and it can be caused by any exception thrown during media item creation. Some exceptions are thrown during item name validation: for example, if file name is too long (setting
MaxItemNameLength), name ends with., name starts or ends with spaces or tabs, name contains invalid characters (settingInvalidItemNameChars) or name does not match pattern from the settingItemNameValidation.So you can try uploading another file or renaming your file to a simple file name containing only letters and see if it helps.