Boa Hancock
How can I resize image with a `.webp` extension? It is saving as `.jpg`.
I'm trying to resize an image with the
.webp
extension using FileUpload, but the file is being saved as .jpg
instead. Here's the code I'm using to handle the file upload and resizing. Can anyone point out what I might be doing wrong?
2 replies
How to Access TemporaryUploadedFile Data from FileUpload
Hi!
I’m using the
FileUpload
component in my Livewire form. I want to access information about the uploaded file, such as its size
, width
, and height
, using the TemporaryUploadedFile
. Can someone explain how I can achieve this?
I can retrieve the necessary information using getUploadedFileNameForStorageUsing
, but I cannot do so with afterStateUpdated
. My goal is to use afterStateUpdated
to display the data in real time, whereas getUploadedFileNameForStorageUsing
sets the data only after the changes have been saved.
5 replies