file upload question
i really don't know how to describe this...
I am new with the hole file upload. but here is my question!
I am making a File upload when you upload your file , the file needs to get in a function like my code (Code below)
It needs to get the file_get_contents, how can i do that?
4 Replies
What are you trying to do with the file?
But you would do something like:
something like this , first a made it in a controller but i want the file to be uploaded by the filament panel
but it gets not the content of the file when i upload
Nevermind got it fixed! stupid mistake off me, didn't know where its stored but now i changed that in the file_get_content like this
FYI a faster approach would be to build the data into an array and just INSERT it unless you need to have watchers etc on the create.
Thank you man will have a futher look into it to learn it to it's full opportunity