Created
January 8, 2019 18:30
-
-
Save vuejsdevelopers/40812c035626f20041e1d8a92a74409f to your computer and use it in GitHub Desktop.
Bad UX in Web Apps that Perform Intensive Tasks (and How to Avoid it with Queues) - Snippet 07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function store(Request $request) | |
{ | |
if ($request->hasFile('csv')) { | |
ProcessCSV::dispatch($request->file("csv"), $request->email); | |
return response("File received for processing!", 202); | |
} else { | |
return response("No file provided.", 400); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment