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

[Bug]: Upload multiple PDFs and only shows one of them in the viewer #10

Open
DevShaded opened this issue Sep 26, 2024 · 4 comments
Open
Labels
enhancement New feature or request

Comments

@DevShaded
Copy link

What happened?

I currently have a FileUpload form where a user can upload a PDF file. When I upload the first PDF file, the PDF shows in the preview. When I upload a second PDF and then save, I don't see the second PDF in the view.

How to reproduce the bug

This is the code I added:

FileUpload::make('document_management')
    ->panelLayout('grid')
    ->previewable()
    ->multiple(),

PdfViewerField::make('document_management')
    ->label('View the PDF')
    ->minHeight('40svh'),

Here is an example:

example.mp4

Package Version

v1.0.5

PHP Version

v8.3.11

Laravel Version

v11.23.5

Which operating systems does with happen with?

macOS

Notes

No response

@DevShaded DevShaded added the bug Something isn't working label Sep 26, 2024
@joaopaulolndev joaopaulolndev added enhancement New feature or request and removed bug Something isn't working labels Sep 26, 2024
@joaopaulolndev
Copy link
Owner

This is not a bug, the plugin is now prepared just for a single PDF per field

@DevShaded
Copy link
Author

Can I make a pull request to support multiple PDFs?

@joaopaulolndev
Copy link
Owner

@DevShaded yeah, go ahead. Just pay attention to work default as now for not break other projects.

@DevShaded
Copy link
Author

Got it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants