Fixed bug, uploading of file now works.