Fixed File Uploading

Fixed Issue #330