Created
January 8, 2019 18:29
-
-
Save vuejsdevelopers/454e5f212f8d551b2ea6e91ba66cd11b 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 05
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")); | |
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