• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 40
  • Last Modified:

Ho Do You Upload a File From a Server Location Using the JQuery Browse File Selector?

I need to browse for an Excel file and upload it from the server location the file is stored at.  How do you map the file to the server location?  The file location is not getting correctly mapped from the server.

Dan
0
danielolorenz
Asked:
danielolorenz
  • 4
  • 3
1 Solution
 
Julian HansenCommented:
When you say how do you map to the server location - can you be more specific?

jQuery - browser based - only files visible (through file input control) are those on the local machine.

If you want to see files on the server you need a server service to send you that information.

Uploading can happen from browser to server.

If you want to send the file from the server somewhere else again you will need a web service to do that - which you can interact with using jQuery.

A use case might help to clarify the situation.
0
 
danielolorenzAuthor Commented:
The files are loaded from: it's from my local (My Documents) folder and I uploaded it into IT
0
 
danielolorenzAuthor Commented:
From my local documents folder, the files are uploaded into the Test database
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
danielolorenzAuthor Commented:
A use case is that I browse for an Excel file and load the file and from my desktop and then it bulk loads into the Test database.
0
 
Julian HansenCommented:
Ok so a standard upload then.

You can do this with the standard <input type="fiile" name="uploadedFile" /> control. You set your form to
<form enctype="multipart/form-data">
To tell the browser to encode the file.

On the server the file will be available to your script and you can process it as required.

You can also use a tool like DropZone.js (http://www.dropzonejs.com/) to do Ajax uploads (you will still need to build a server script to handle the uploaded file).
0
 
danielolorenzAuthor Commented:
Thanks
0
 
Julian HansenCommented:
You are welcome.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now