serverfireteam / panel

An easily configurable admin panel for Laravel applications.
MIT License
427 stars 144 forks source link

Field for relationship multiple upload files #255

Open lhas opened 8 years ago

lhas commented 8 years ago

Hi, @serverfire ! This plugin is really awesome. Congratulations for the work.

I have one question: you have any ready solution for fields where will be upload multiple files?

For example:

1) Posts table title, content: string;

2) PostImages table post_id: foreign; photo: file;

So if i'm adding a new Post, i can see one field called "Post images", where is a with multiple="true", or Dropzone.js (maybe).

I'm creating a field for this, i just want to know if the community has one solution ready for this.

Thanks for all!

Fragger5000 commented 7 years ago

In my opinion this feature involves rapyd (that is included in LaravelPanel).

I'm relatively new to backend development in Laravel, but in this case I think that a possible way consists in the development of a specific CRUD that includes DropzoneJS http://www.dropzonejs.com/ or a jquery plugin like this: https://blueimp.github.io/jQuery-File-Upload/

on the MySQL side we need to store a JSON record to a TEXT or JSON field (it depends on the version of MySQL).