Closed stepanenko3 closed 2 years ago
Thanks for reporting, working on the issues now, will create a PR for a patch release in a couple of hours.
Hey @stepanenko3, I started a PR #321 to fix the above.
There is one thing I couldn't replicate: If I add media and then open the editing form again, the media is not shown
.
Can you give me a screen recording or some more details on how to replicate?
On my end if I:
Also, in the second to last screenshoot, the one with the statistics, I see that on your end you don't get the size of the image. There is an condition (there before the migration to nova4) to only show the size if it comes set from the server.
Is this your reported bug, the missing size?
On my tests I do get the size filled in:
@mucenica-bogdan, I recorded a screen with this problem https://we.tl/t-Zb2zF7Ldg7
But on the index page, the image is displayed The details page displays [object Object]
The same problem for uploaded new images (even when the size is displayed)
@stepanenko3 - thanks for the video. still can't replicate from my end but I'll try to push it some more.
in the meantime, can you try to use the package from my fork by changing your composer.json
file and see if it works better from there?
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/mucenica-bogdan/advanced-nova-media-library.git"
}
],
"require": {
"ebess/advanced-nova-media-library": "dev-nova-4-bugfix",
}
}
run composer update
after the composer.json
file change change.
@mucenica-bogdan The problem still remains
I also noticed a number of bugs:
My code looks like this:
Images::make('Image', 'image')
->conversionOnIndexView('small')
->conversionOnDetailView('medium')
->conversionOnPreview('medium')
->conversionOnForm('small')
->setFileName(function ($originalFilename, $extension, $model) {
return md5($originalFilename) . '.' . $extension;
})
->showDimensions()
->enableExistingMedia(),
I using single file field in example
@mucenica-bogdan And of course, a large number of bugs in dark mode
@mucenica-bogdan
See screenshots in Readme.me, it will make it clear what everything should look like But I would add a couple more improvements, such as rounding a modal window, rounding thumbnails in this window Please use all available field types and functions at once, such as one image, many images, one file, many files, a window with additional fields, etc.
Thanks for the info, I'll continue to work on this tomorrow morning.
Hey @stepanenko3, I just pushed a new patch to my fork.
I think I've fixed everything reported above.
The only thing that I couldn't replicate is that missing image after upload issue. I noticed that you are using conversions to show the preview images. Are you doing the conversion in a queue? If so, do you have your queue worker up and running to process the conversions?
@mucenica-bogdan thank you for your efforts. I'll check on your changes.
@mucenica-bogdan, @bkintanar
I don't show images on the form page because of this error
can you share with me the image you've uploaded that gives you this error?
fixed in #325
I use Nova 4.2.2