The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/printthread.php(287) : eval()'d code 2 errorHandler->error
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



UserSpice
Upload with link - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: General (https://userspice.com/forums/forumdisplay.php?fid=20)
+--- Forum: UserSpice 5 - Roadmapping the Future (https://userspice.com/forums/forumdisplay.php?fid=31)
+--- Thread: Upload with link (/showthread.php?tid=261)

Pages: 1 2


Upload with link - brian - 09-16-2016

This is an image file you want to insert into the database? For that, I seem to recall about 10 years ago I did something to insert thumbnails into a DB rather than having them in the filesystem. I think you need to use some binary read functions or something like that.

I'm going to be doing some file upload stuff soon, so I could help you with that once I get there.


Upload with link - Disruptionz - 09-16-2016

I need it to upload a CV and create a link for that users ID so it can be downloaded by the staff for that user.

I'm making an address book
http://prntscr.com/citu8y

I just cant work out how to do it, I used that link and it will upload to it's own database and upload the file but I cant get it to add it to users.


Upload with link - mudmin - 09-19-2016

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.


Upload with link - picassoo - 10-07-2016

hre is example what i have. upload images: cv/year/month/day/user_id/cv.file + upload info to DB

https://gist.github.com/artpicassoo/3c9dc38694528d2ccd8cf77090304045