A number of small fixes to errors caused by the last update.

Fixes:

  • Fixed files not being uploaded in the editor if its extension contained capital letters.
  • Fixed a bug causing the file preview in the editor to error when uploading a non-image file.