More fixes to pack file uploading