This topic is locked

Link to a File but do not store the file.

9/10/2011 4:22:37 AM
PHPRunner General questions
M
mal author

Hi,
Could anyone help me resolve a difficult issue I am having with the following:

  • Through a browse option, Store file name and location but do not store the file itself, only the link or shortcut to it. It would be just a pointer.
    I can already use two fields / one as text and one as image and store the file in the Database OR store a copy of all files to

    the designated store folder in the PHPRunner ABSOLUTE FILE settings folder location.
    The problem with both of those options is that most organizations Windows file system folders are stored into groups of folders ie: headings and thus not all stored in one folder in which I would never recommend either.
    I want the ability to be able to browse to, and store a file name and location in database so that when a user edits the real document stored in the real file location, it reflects the same file information when a user opens the file link or shortcut in the database web interface record.
    If anyone can help that would save me the grief I am having... <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=17726&image=1&table=forumtopics' class='bbc_emoticon' alt=':wacko:' /><img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=17726&image=2&table=forumtopics' class='bbc_emoticon' alt=':(' />
    Thanks in advance
    Mal

Sergey Kornilov admin 9/11/2011

I guess we are talking about allowing user to choose folder/file name on the server. This is possible however you will need to implement this kind of file picker manually. You can display it in a popup window for example and save selected path in one of database fields.
There are several PHP scripts available on the net that do similar job. Quick search pointed me to this one though it might be too advanced for such a simple task: http://sourceforge.net/projects/dir-list/