2323import org .labkey .dbutils .api .SimpleQueryFactory ;
2424import org .labkey .dbutils .api .SimpleQueryUpdater ;
2525import org .labkey .dbutils .api .SimplerFilter ;
26+ import org .labkey .vfs .FileLike ;
2627import org .labkey .webutils .api .action .SimpleJspPageAction ;
2728import org .labkey .wnprc_compliance .form .NewUserForm ;
2829import org .labkey .wnprc_compliance .form .RequirementForm ;
2930import org .labkey .wnprc_compliance .security .ComplianceAdminPermission ;
3031import org .springframework .validation .BindException ;
3132
32- import java .io .File ;
3333import java .io .IOException ;
3434import java .io .InputStream ;
3535import java .io .Writer ;
@@ -273,7 +273,7 @@ public Object execute(NewUserFormWithData form, BindException errors) throws Exc
273273 @ RequiresPermission (ComplianceAdminPermission .class )
274274 public class UploadAccessReportAPI extends AbstractFileUploadAction {
275275 @ Override
276- protected File handleFile (String filename , InputStream input , Writer writer ) throws IOException {
276+ protected FileLike handleFile (String filename , InputStream input , Writer writer ) throws IOException {
277277 try {
278278
279279 AccessReportService service = new AccessReportService (getUser (), getContainer ());
@@ -291,7 +291,7 @@ protected File handleFile(String filename, InputStream input, Writer writer) thr
291291 }
292292
293293 @ Override
294- protected File getTargetFile (String filename ) throws IOException {
294+ protected FileLike getTargetFile (String filename ) throws IOException {
295295 // We'll be intercepting the stream, and we override handleFile(), so we don't need
296296 // to implement this. If that ever changes, look at using /dev/null ("NUL" for Windows)
297297 // to truly give a data sink.
0 commit comments