Solved

Local file access from Web Page

Posted on 2014-04-01
3
627 Views
Last Modified: 2014-04-07
I am working a application mostly for my personal use which I have written in PHP.   with an HTML interface.   I have a separate PHP file which I am using to read a file and load data into a database.  However this is something I would like to do on a regular basis and currently I am editing the PHP file and entering the full path to the file I want to upload.  

I would like to be able to browse and select a file on the local (client) C drive, read it in and load it into a database table on my webserver.   From a page on my webserver.

What is the easiest way to go about this.  

I am running an Apache web-server on OpenSUSE.   My current pages are all built using javascript and PHP.
0
Comment
Question by:qvfps
  • 2
3 Comments
 
LVL 31

Accepted Solution

by:
Marco Gasi earned 250 total points
ID: 39972804
I suggest you a good jQuery plugin: http://blueimp.github.io/jQuery-File-Upload/
It has a great interface, it is easy to implement and you can edit it to insert uploaded files in the database.
0
 
LVL 31

Expert Comment

by:Marco Gasi
ID: 39972811
In order to insert fles in the database, you can take a look to this my own question about this: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28379067.html
0
 

Author Comment

by:qvfps
ID: 39973063
Thanks for the suggestions.  I will look into trying this.

Unrelated.  Is it possible to delete answers?  There was one posted last night from someone else but it is not displayed today?
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question