fix incorrect file size assignment after uploading
fix improper folder assignment