fixed bug with upload, files upload correctly now