add tests for readonly file upload