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

Is there a method to have multipul images per record? #78

Closed
dan-lutd opened this issue Apr 5, 2022 · 2 comments
Closed

Is there a method to have multipul images per record? #78

dan-lutd opened this issue Apr 5, 2022 · 2 comments
Labels
question Further information is requested

Comments

@dan-lutd
Copy link

dan-lutd commented Apr 5, 2022

I am using the plugin for an image per record and now have to save multipule images per record.
Is there a way with this plugin to do that?

@ctessier
Copy link
Owner

ctessier commented Apr 8, 2022

Hi @dan-lutd

If it fits your need, you can set multiple AdvancedImage fields to your resource:

AdvancedImage::make('Photo 1');
AdvancedImage::make('Photo 2');
AdvancedImage::make('Photo 3');

If you want to upload multiple times the same image, you can have a look at #59, an already ongoing discussion.

Hoping this helps.
Clément

@ctessier ctessier added the question Further information is requested label Apr 8, 2022
@dan-lutd
Copy link
Author

Thanks ,
I like the feature that you add the filepath to the resource's table,
And that feature would be complicated by storing data for many files.

Still for single images having the filepath in the table makes things very simple for allowing another program to read the same data.
In my case a node/sequelize program servers the data elsewhere.

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

No branches or pull requests

2 participants