[Vtigercrm-commits] [vtiger development] #6216: When we delete a document , we need to delete file related to it.

vtiger development vtiger-tickets at trac.vtiger.com
Thu Aug 13 17:50:54 EDT 2009


#6216: When we delete a document ,we need to delete file related to it.
------------------------+---------------------------------------------------
  Reporter:  vikas      |       Owner:  developer
      Type:  defect     |      Status:  new      
  Priority:  major      |   Milestone:  5.1.1    
 Component:  vtigercrm  |     Version:  5.1.0    
Resolution:             |    Keywords:           
------------------------+---------------------------------------------------
Comment (by anthony):

 I was thinking, this is similar to a method i've done with other web
 things such as .flv files on websites. Although everything i did was coded
 into the flash player, maybe you can attempt something similar with
 php/mysql.

 1. You upload a document
 2. vtiger renames the file
 3. vtiger removes the file extension from the files(ie: filename.exe turns
 into "randomname")

 4. vtiger keeps track of the filetype, and extension in the database.

 5. Whenever clicking the download link, or send file as attachment ..
 vtiger grabs all the file information and generates a file with the
 original name and the correct file extension attached to it again.

 6. This way if someone finds a way to browse the files from your
 directory, the files will have weird names and no file extension. In most
 cases the user won't know what file extension to use to open the file, or
 what to do with the file.

 Of course, if they really wanted to they could still use some type of
 program that automatically checks the file type.

 But the above is just an idea, maybe you can develop a better system.

-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6216#comment:1>
vtiger development <http://trac.vtiger.com/>
vtigerCRM




More information about the vtigercrm-commits mailing list