How to modify the input file path?

Asked

Viewed 278 times

0

Good evening, I have a file type field, when I click on it opens a dialog box so I can choose a file from my computer.

My question is this::

Instead of choosing a file from my computer, I would like to choose a file that is inside a particular server folder.

How can I do that?

I develop with PHP and jQuery

  • 5

    Basically with an INPUT FILE will not be possible, the input file looks for files on your computer. You can create a solution with jQuery and PHP by listing the server files in a checkbox. This would select the files you want to include or process. You can create very attractive interfaces with only jQuery and CSS. To learn more you can log in to this link http://www.webmasterworld.com/html/4494793.htm

  • 3

    I suggest putting the @Pedrohenrique comment as an answer, as it is not possible to determine a default folder for html upload files for multiple issues, among them the user security.

  • Thank you Leonardo Bosquett and Pedro Henrique.

  • 1

    Rafael, you will need to create a page to show the files on the server that simulates the menu when you choose a file on your computer. If you want help doing that you can rephrase the question with the parts you don’t know how to do so we can help.

  • Hello Sergio, thank you for your willingness, I am working on the project and as soon as more questions arise on the subject, I will definitely be here to count on you, thank you very much @Sergio

2 answers

1

A solution in windows 7 for your problem would be to configure SAMBA and map the network drive in your explorer. So the server folder would be accessible as, for example (X:)

0

if you are interested in working on something ready, take a look:

http://elfinder.org/

Plus, and what @Pedrohenrique replied.

Abs

Browser other questions tagged

You are not signed in. Login or sign up in order to post.