Livewire upload non image files
Hi,
How to save files like txt, zip, etc ?
I use asolutly clear livewire file upload expample.
im added public $attachment and WithFileUploads to livewire component, also binded model <input wire:model="attachment" type="file">.
When im selecing an image everething is ok, but when im trying to select txt file i see in browser console "fopen(HereMyPathToProject\\storage\\app\\7I5sz0wChHkaihnGwhBF9X8kCDXxZv-metaYS50eHQ=-.): Failed to open stream: Permission denied"
I checked permissions all is okey plus i can store file without livewire when using $request->attachment->save()
Also i tried to dump it. Added updatedAttachment method to component and call inside dd($this->attachment) but it returns nothing becase of error in console.
Any problem or solutions with that?
Please or to participate in this conversation.