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

gh-195 added example slim application to handle file uploads #233

Merged
merged 1 commit into from Jun 24, 2017

Conversation

llvdl
Copy link
Contributor

@llvdl llvdl commented Jun 20, 2017

also added link to post by Rob Allen

@akrabat akrabat merged commit 4513a37 into slimphp:gh-pages Jun 24, 2017
@akrabat
Copy link
Member

akrabat commented Jun 24, 2017

Great work. Thanks.

@danielMensah
Copy link

@llvdl nice one. However I get an error with the $uploadedFile->getError()
Uncaught Error: Call to a member function getError() on null

@llvdl
Copy link
Contributor Author

llvdl commented Aug 29, 2017

Hello @danielMensah,

Thanks for reaching out. I can't reproduce the error you mentioned. I have ran the example code, submitting the form both with and without attachments.

Can you add a link to a minimal example where you are seeing this error and the steps you take that lead to the error?

@dongido001
Copy link

Hi @danielgsims

Although this is an old thread. Just want to put it here for users that might hit the same errors.

You should make sure you are setting this encoding type in your form:

<form enctype="multipart/form-data">

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

Successfully merging this pull request may close these issues.

None yet

4 participants