09-19-2016, 11:48 AM
Sorry for the slow response.
It is perfectly fine to have the upload go to a different database table, but the key is to assign the uploader's user id to that upload. So make another column in the table and call it user_id.
Then when uploading the file, make sure that you send $user->data()->id to the user_id folder.
If you want from there you can have it check to see if there is already an upload with that user id in the table and delete it before uploading a new one.
It is perfectly fine to have the upload go to a different database table, but the key is to assign the uploader's user id to that upload. So make another column in the table and call it user_id.
Then when uploading the file, make sure that you send $user->data()->id to the user_id folder.
If you want from there you can have it check to see if there is already an upload with that user id in the table and delete it before uploading a new one.