Skip to content

Instantly share code, notes, and snippets.

@vuejsdevelopers
Created January 8, 2019 18:30
Show Gist options
  • Save vuejsdevelopers/40812c035626f20041e1d8a92a74409f to your computer and use it in GitHub Desktop.
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
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