BasherDesigns
BasherDesigns
FFilament
Created by BasherDesigns on 7/9/2024 in #❓┊help
the attachment field must be a file of type:
I'm going to do some more testing with local storage again, I believe it gave me the same issue but lets try this again and I'll report back !
8 replies
FFilament
Created by BasherDesigns on 7/9/2024 in #❓┊help
the attachment field must be a file of type:
CSV is exported from a web app. I also have a Image uploader using SpatieMediaLibraryUpload that does the exact same thing, I select images, they upload to tmp dir and when hit Submit, same file type error reporting its not image
8 replies
FFilament
Created by BasherDesigns on 7/9/2024 in #❓┊help
the attachment field must be a file of type:
Update, this import is using FileUpload, but I do receive the same error with Spatie. Here is the code for the import Reservations``` Actions\Action::make('ImportReservations') ->label('Import Reservations') ->color('warning') ->icon('heroicon-o-arrow-up-on-square') ->form([ FileUpload::make('attachment') ->acceptedFileTypes(['text/csv']), ]) ->action(function (array $data) { $file = public_path('storage/'. $data['attachment']); // dd($file); $this->importCsv($file); Notification::make() ->title('Reservations Imported') ->success() ->send(); }),
8 replies
FFilament
Created by WS_Code on 6/13/2024 in #❓┊help
FileUpload BUG
No description
79 replies
FFilament
Created by BasherDesigns on 5/14/2024 in #❓┊help
Spatie Media Library temporary upload location?
and error I'm seeing:
production.ERROR: Illuminate\Translation\PotentiallyTranslatedString::__toString(): Return value must be of type string, null returned {"userId":2,"exception":"[object] (TypeError(code: 0): Illuminate\\Translation\\PotentiallyTranslatedString::__toString(): Return value must be of type string, null returned at /home/forge/domain.com/vendor/laravel/framework/src/Illuminate/Translation/PotentiallyTranslatedString.php:89)
[stacktrace]
production.ERROR: Illuminate\Translation\PotentiallyTranslatedString::__toString(): Return value must be of type string, null returned {"userId":2,"exception":"[object] (TypeError(code: 0): Illuminate\\Translation\\PotentiallyTranslatedString::__toString(): Return value must be of type string, null returned at /home/forge/domain.com/vendor/laravel/framework/src/Illuminate/Translation/PotentiallyTranslatedString.php:89)
[stacktrace]
9 replies
FFilament
Created by BasherDesigns on 5/14/2024 in #❓┊help
Spatie Media Library temporary upload location?
OK, here's my Form element:
SpatieMediaLibraryFileUpload::make('location-images')
->imageEditor()
->disk('r2images')
->label('Location Photos')
->columnSpanFull()
->collection('location-images')
->multiple()
->image()
->reorderable(),
SpatieMediaLibraryFileUpload::make('location-images')
->imageEditor()
->disk('r2images')
->label('Location Photos')
->columnSpanFull()
->collection('location-images')
->multiple()
->image()
->reorderable(),
9 replies
FFilament
Created by BasherDesigns on 5/14/2024 in #❓┊help
Spatie Media Library temporary upload location?
Thats what I was thinking until I see Filament saving the image to the temp directory.. and the first time testing it created the livewire-tmp directory in the r2 bucket. I'm missing something here..
9 replies
FFilament
Created by BasherDesigns on 5/14/2024 in #❓┊help
Spatie Media Library temporary upload location?
I should add, in dev on Herd, all works succesfully, saves and is uploaded to R2 as well.. hmm...
9 replies
FFilament
Created by BasherDesigns on 5/14/2024 in #❓┊help
Spatie Media Library temporary upload location?
I'm using Cloudflare R2, so I changed the 'disk' to my r2 disk, and I can see the temporary file now on Cloudflare bucket, when I hit save, it says Saved but the media table is not updated with the new image. I can successfully edit/create new records but media table isn't being updated with new record.
9 replies