tomdchi Posted September 24, 2008 Share Posted September 24, 2008 I needed the ability to archive documents associated with clients. The contents of the zip file achieve this. This saves the file contents in the database instead of uploading the file to a directory. I prefer this to be organized and keeping it as simple as possible. Details: Upload form in the clientsummary.tpl to upload documents into the database saved as blob. Download script to view the names of the documents and to download. This needs to have a delete function written into it and is on the to do list:-) I hope someone finds this helpful. Tom clientdocupload.zip 0 Quote Link to comment Share on other sites More sharing options...
jnet Posted September 25, 2008 Share Posted September 25, 2008 Thanks but what if I do not want the files go to database? 0 Quote Link to comment Share on other sites More sharing options...
Hayk Posted September 25, 2008 Share Posted September 25, 2008 Sounds good. Saved for testing. Thanks:) 0 Quote Link to comment Share on other sites More sharing options...
tomdchi Posted September 25, 2008 Author Share Posted September 25, 2008 Thanks but what if I do not want the files go to database? I only designed this for my purposes. You can search "mysql php file upload" on google and find some tutorials on how to make your own script. Thats how I did this. A completely different script would be needed to save files into a directory. I would think you would want it to create a sub directory for each client as well. If not you would have a jumble of files. Thats why I prefered this approach. 0 Quote Link to comment Share on other sites More sharing options...
atilla.gahbro Posted March 15, 2009 Share Posted March 15, 2009 tomdchi, did you get around to writing a delete function for this script? 0 Quote Link to comment Share on other sites More sharing options...
ipglobe Posted March 16, 2009 Share Posted March 16, 2009 You can do the same, but for the client to send proof of payment and proof is in the system? 0 Quote Link to comment Share on other sites More sharing options...
ipglobe Posted March 19, 2009 Share Posted March 19, 2009 You can do the same, but for the client to send proof of payment and proof is in the system? 0 Quote Link to comment Share on other sites More sharing options...
flip Posted March 25, 2009 Share Posted March 25, 2009 Files being added to the database would grow exponentially! So would anyone be able to provide code for file upload to server folder? So for example: - uploaded file would reside in /docs.upload/* - file names: Company.REF_Number(unique).EXT e.g.: ABC_Constructions.REF_82039.doc I think that would be a fantastic idea, even if both clients and admins could upload small files (perhaps restrict to 500kb or allow user to set in settings and php.ini). Thanks for the great work! (: 0 Quote Link to comment Share on other sites More sharing options...
wiresocket Posted March 25, 2009 Share Posted March 25, 2009 If he allows i'll rewrite it to work with folder uploads 0 Quote Link to comment Share on other sites More sharing options...
equipc Posted April 2, 2009 Share Posted April 2, 2009 This is an interesting add 0 Quote Link to comment Share on other sites More sharing options...
BulliteShot Posted April 5, 2009 Share Posted April 5, 2009 It's not a good idea to add the files to the database! Whenever you want to backup the database, the files will need to be downloaded each time? 0 Quote Link to comment Share on other sites More sharing options...
atilla.gahbro Posted April 7, 2009 Share Posted April 7, 2009 yeah i know but unless you do that i dont see how it can be a part of a specific customer manually managing a folder and subfolders on the server would not be too desirable on another note, i found this: http://tinymce.moxiecode.com/plugins_filemanager.php its the same people who make the html editor for the kb section of whmcs itself i know its just a file manager and does nto make the files a part of a specific customer but i am just looking for any ideas on how we might use this in some way thanks in advance 0 Quote Link to comment Share on other sites More sharing options...
andyf Posted April 19, 2009 Share Posted April 19, 2009 Hi All, This is a great addon. I also would prefer to use this but for server uploads. As anyone managed to achieve this or have a go at amending it, would be willing to pay for this as I need to offer documents to clients for quote/contract reasons. If not any pointers to achieve this would be great! (if the code can be used if agreed by the author of course) Thanks Andy 0 Quote Link to comment Share on other sites More sharing options...
ProSitez Posted October 24, 2009 Share Posted October 24, 2009 Any updates on file uploads to server yet? 0 Quote Link to comment Share on other sites More sharing options...
tomdchi Posted October 24, 2009 Author Share Posted October 24, 2009 Any updates on file uploads to server yet? the latest version of whmcs has this included in it. It works very well and has the added benefit of being able to set upload to admin only. If not set then the client can view the doc in the client area. 0 Quote Link to comment Share on other sites More sharing options...
lanquest Posted April 26, 2010 Share Posted April 26, 2010 the latest version of whmcs has this included in it. It works very well and has the added benefit of being able to set upload to admin only. If not set then the client can view the doc in the client area. Hi Tomdchi, I don't see this setting anywhere. Where is this located? I'm expecting that this will work only if your using the WHMCS support system or does this not matter?.. 0 Quote Link to comment Share on other sites More sharing options...
pvstaden Posted May 28, 2010 Share Posted May 28, 2010 Hi Tomdchi, I don't see this setting anywhere. Where is this located? I'm expecting that this will work only if your using the WHMCS support system or does this not matter?.. Click on one of your clients. Then go to the "Summary" tab. It's about in the middle of the page, just look closely. 0 Quote Link to comment Share on other sites More sharing options...
craiggallup Posted January 5, 2011 Share Posted January 5, 2011 So there is something that can allow client upload? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.