adding files to database
enboig - May 7, 2007 - 17:24
| Project: | Audit Files |
| Version: | 5.x-1.0 |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
would be a way to insert an upload file to the database?
this way these files would be available to all other modules/nodes to use them. Some times it would be better than removing them and they would stop appearing in the log.
thanks.

#1
Can you clarify what you mean here? The files table links files to nodes, so that the files on the system have a node that owns them. If the file appears in the report it means that the connection is broken. If you were to "re-attach" files then you would need to choose the node that you want to link to and you wouldn't really know where to put it!
The best option in this case might be to download the file using FTP, and then edit the relevant node and re-upload the file that way?
If I have missed something then if you can explain a little further how you might see this working then I can understand how this might work.
Hope that's ok!
#2
Sorry, I didn't think carefully before writting. I will explain my situation:
I am using IMCE to attach images and files to nodes, but these files aren't really associated to the node, if I remove a node, the file isn't removed. So I was thinking about a way to insert these files to the nodes which are using them. This way it would be easy to remove files.
After reading more and thinking about it I think maybe it would be IMCE who should use uploaded files in the node...
The good things and bad of every alternative are:
* IMCE use attached files:
+ seems easy to code.
+ it could use "inline" or "Path Filter" so if you move your site to another location everything works ok.
- you are limited to upload files, you cannot use FTP to upload big files (now you can do it).
- you cannot share files across nodes
* Audit files attach used files to the nodes using it:
? I don't know if a file can be "belonged" by more than one node.
+ you could upload big files with ftp and they would be used by any node.
+ if a file is used twice or more, you could save space; and if you have to change the uploaded file, you just have to do it once.
- I think it would be hard to code.
mmmm..... these are my thoughts, any idea is wellcome.