Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload file: Serialization of 'Illuminate\Http\UploadedFile' is not allowed #4

Open
d4Mn3d opened this issue Jul 14, 2020 · 2 comments

Comments

@d4Mn3d
Copy link

d4Mn3d commented Jul 14, 2020

Exception in vendor/laravel/framework/src/Illuminate/Session/Store.php:129 (laravel 5.8)

I upload file in the request then i store it with $document = $request->document->storeAs('test/', $documentRenamed);
The exception appears when I pass the $request to $this->saveProgress($request);

@d4Mn3d d4Mn3d changed the title Serialization of 'Illuminate\Http\UploadedFile' is not allowed Upload file: Serialization of 'Illuminate\Http\UploadedFile' is not allowed Jul 14, 2020
@smajti1
Copy link
Owner

smajti1 commented Jul 16, 2020

Hi @d4Mn3d, could you paste sample code that causes this error here or add more information about this error?

@ghost
Copy link

ghost commented Aug 16, 2020

@smajti1 This will occurs when you have UploadedFile as parameters inside Request Object because Session will serialize all Request data and won't be able to serialize UploadedFile instance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants