F
Filament7mo ago
Skjena

Encounter a network issue while uploading a file using SpatieMediaLibraryFileUpload

When I create a record without using file upload, it is successfully created. However, when I attempt to create a record with a file, it encounters a network issue, but the record is still successfully created.
7 Replies
Skjena
Skjena7mo ago
Skjena
Skjena7mo ago
Here is encountering a network issue when attempting to create.
DrByte
DrByte7mo ago
Are there more clues in the console logs?
No description
Skjena
Skjena7mo ago
No, the console log is clear except for the message shown in your picture.
DrByte
DrByte7mo ago
If you've configured the Spatie MediaLibrary to use a network disk then perhaps that's where your problem is occurring? I'm using the SpatieMediaLibraryFileUpload with an S3 disk and have no issues. But I do also have my localhost configured to use the S3 disk as well, just to a "testing" subdirectory so the files are kept separate. I don't have mine pointed to store the media on localhost.
Skjena
Skjena7mo ago
Thanks for the response, but I have configured the s3 disk for my production as the default storage, and yet encountered the same issue in production.
DrByte
DrByte7mo ago
What is the "message port closed before a..." error referring to? What's it caused by?