fixed file upload compress via js