The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upload with link
#13
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.
  Reply


Messages In This Thread
Upload with link - by Disruptionz - 09-12-2016, 08:29 PM
Upload with link - by mudmin - 09-12-2016, 09:42 PM
Upload with link - by Disruptionz - 09-13-2016, 05:25 AM
Upload with link - by Disruptionz - 09-13-2016, 07:26 AM
Upload with link - by Disruptionz - 09-13-2016, 09:19 AM
Upload with link - by brian - 09-14-2016, 01:26 PM
Upload with link - by firestorm - 09-14-2016, 03:23 PM
Upload with link - by brian - 09-14-2016, 05:02 PM
Upload with link - by Disruptionz - 09-16-2016, 06:40 AM
Upload with link - by Disruptionz - 09-16-2016, 07:22 AM
Upload with link - by brian - 09-16-2016, 10:46 AM
Upload with link - by Disruptionz - 09-16-2016, 05:53 PM
Upload with link - by mudmin - 09-19-2016, 11:48 AM
Upload with link - by picassoo - 10-07-2016, 03:55 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)