Fixing error when uploading local files

This fixes #93