I'm not sure what you mean with the download URL? Can you show what is outputted in HTML and how you create it?
Also OrderImage is not a default field in Laravel Nova. Can you tell us which package you use? Or is this your own implementation?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
// #image
OrderImage::make('Image')
->url('/orders/order/' . optional($this)->image . '/get-preview-image')
->canSee(function () use ($user) {
return $user->hasPermission('orders-fields-image-see');
})
->hideWhenUpdating(! $user->hasPermission('orders-fields-image-edit'))
->disk('orderImages')
->prunable($isNotDefault = optional($this)->image !== 'default.png')
->deletable(false)
->acceptedTypes('image/*')
->rules('required', 'mimes:jpg,jpeg,bmp,png,webp', 'max:3000')
this is the code responsible for displaing the image in view page of the resource and there is a default download link that filed offers provide out of the box, when i press that link or try to save the image it will be saved by (.htm) extention but if u manully change the extention to .png or .jpeg it works fine
how to download it with its original extension as usual?
knowing that I have tried to implement
->download(function () {
})
countless times returning all possible things
Please or to participate in this conversation.