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
Here is encountering a network issue when attempting to create.
Are there more clues in the console logs?
No, the console log is clear except for the message shown in your picture.
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.
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.
What is the "message port closed before a..." error referring to? What's it caused by?