Fixed big files upload

Closes #339