-
Notifications
You must be signed in to change notification settings - Fork 2
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
[Feature Request] Allow uploading files #1
Comments
Yes, this is something that could be done. Could you propose the structure you have in mind? |
Well, to support multiple images for single record I suggest to create table (for example: media) then we need something like: We need a table to store media: To handle upload and relations model behavior can help. beforeCreate, beforeUpdate, and afterDelete events can get some options like; directory path, post field, number of maximum/minimum images... We can get default upload directory, media model from config. Note: I'm not sure but this could be out of the scope of this project. |
@HackHers the scope of this project is to make api development easier for all phalcon developers so adding images is a important aspect. Now, we may need to add 2 drivers to store the image info, table or redis. After that I'm good, @SparoHawk ? |
@kaioken Considering popular choices I'd say we need 4 drivers:
|
this features is going to be release with canvas |
Hello,
It would be great if we could accept uploading files (for example for blog posts) over Rest API. That could be done with middleware or custom function before executing
$this->model->save([Post], [Allowed Params])
. I can implement that feature too, if we can decide how we should do this.The text was updated successfully, but these errors were encountered: