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

Filepond with Slim 4 #29

Closed
mkraha opened this issue Oct 4, 2020 · 9 comments
Closed

Filepond with Slim 4 #29

mkraha opened this issue Oct 4, 2020 · 9 comments

Comments

@mkraha
Copy link

mkraha commented Oct 4, 2020

Hello Odan,

Could you please consider to write a tutorial for Filepond uploader for Slim 4.

Thank you.

@odan
Copy link
Owner

odan commented Oct 4, 2020

Hi @mkraha I had a look at Filepond. Unfortunately there are only very outdated vanilla PHP- and two Laravel-specific adapters. But I couldn't find a PSR-7 compatible adapter yet. Do you know an adapter for Filepond that is compatible with PSR-7?

@mkraha
Copy link
Author

mkraha commented Oct 4, 2020

Hii @odan We can't able to create one for Slim? and i found this issue rise on Filepond repo.

@odan
Copy link
Owner

odan commented Oct 4, 2020

Getting the payload of a PSR-7 request is very easy. I mean a full framework independent PSR-7 implementation of that Filepond "protocol" with all the file handling and so on.

@mkraha
Copy link
Author

mkraha commented Oct 5, 2020

@odan Sorry! What is that mean? you will able to create one for SLIM or have to ask filepond developer to update php support?

@odan
Copy link
Owner

odan commented Oct 5, 2020

I think before we can provide support for Slim, we (or someone else) should first implement a PSR-7 based filepond adapter.
We need to find or implement a PSR-7 implementation for filepond.

Someone who needs this filepond adapter could ask a filepond developer to implement it, or we could do it ourselves. https://github.com/pqina/filepond/issues

Are you interested in implementing this filepond adapter? I could also help you with that.

@mkraha
Copy link
Author

mkraha commented Oct 6, 2020

I am interested but I don't know where to start that. Could please help/guide me to work on that?

@odan
Copy link
Owner

odan commented Oct 6, 2020

For the beginning you could read the API documentation:
https://pqina.nl/filepond/docs/patterns/api/server/

Then this API must be implemented in PHP based on a PSR-7 request and response object.

For more inspiration you could look here:

PS: I just realized that a special library is not required. I think I write a blog post about this topic.

@odan
Copy link
Owner

odan commented Oct 6, 2020

https://odan.github.io/2020/10/06/slim4-filepond.html

@odan odan closed this as completed Oct 6, 2020
@mkraha
Copy link
Author

mkraha commented Oct 6, 2020

https://odan.github.io/2020/10/06/slim4-filepond.html

Thanks a lot for this!!!!

@devtkn devtkn mentioned this issue Oct 18, 2020
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