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
danielolorenzAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
danielolorenzAuthor Commented:
Thanks
0
Julian HansenCommented:
You are welcome.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET MVC

From novice to tech pro — start learning today.