Thursday
Jun202013

Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI

 

Carl's File Uploader is available at http://franklins.net/CarlsFileUploader_1.1.zip

Carl's File Uploader is a browser based asynchronous file uploader with progress reporting and auto-resume. It requires HTML5, client-side JavaScript and JQuery, and Web Api (C#) on the server.

To test:

1) Create a new Web project in VS 2012
2) Select the Web API template
3) Add CarlsFileUploader.js to the Scripts folder
4) Add FileUploadController to the Controllers folder
5) Add index.html to the project and make it your startup page
6) Create a file folder to accept uploads, and give asp.net write permission.
You can do this easily by granting full access to AuthenticatedUsers
7) Edit web.config and add the following, pointing to your upload folder: 

        <appSettings>
           <add key="filepath" value="f:\uploads" />
        </appSettings>

 

8) Run the project
9) Select one or more files and press the upload button
10) Enjoy

Carl Franklin
carl@franklins.net
June 20, 2013

PrintView Printer Friendly Version

EmailEmail Article to Friend

References (98)

References allow you to track sources for this article, as well as articles that were written in response to this article.
  • Response
    Response: tesco voucher code
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: Ann-Lorrain
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: www.hitpr2.com
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: This Resource site
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: Wini
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    carl franklin - intellectual hedonism - blog - carl's file uploader - a nice little file uploader for html/js/jquery/webapi
  • Response
    carl franklin - intellectual hedonism - blog - carl's file uploader - a nice little file uploader for html/js/jquery/webapi
  • Response
    Response: cholache.com
    carl franklin - intellectual hedonism - blog - carl's file uploader - a nice little file uploader for html/js/jquery/webapi
  • Response
    carl franklin - intellectual hedonism - blog - carl's file uploader - a nice little file uploader for html/js/jquery/webapi
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    carl franklin - intellectual hedonism - blog - carl's file uploader - a nice little file uploader for html/js/jquery/webapi
  • Response
    Response: www.eventbrite.com
    carl franklin - intellectual hedonism - blog - carl's file uploader - a nice little file uploader for html/js/jquery/webapi
  • Response
    Response: nhakhoadrduong.com
    carl franklin - intellectual hedonism - blog - carl's file uploader - a nice little file uploader for html/js/jquery/webapi
  • Response
    carl franklin - intellectual hedonism - blog - carl's file uploader - a nice little file uploader for html/js/jquery/webapi
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: blog.feedly.com
    carl franklin - intellectual hedonism - blog - carl's file uploader - a nice little file uploader for html/js/jquery/webapi
  • Response
    carl franklin - intellectual hedonism - blog - carl's file uploader - a nice little file uploader for html/js/jquery/webapi
  • Response
    Response: Annamaria
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: qcservices
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: Willa
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: jungle heat hack
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: glaenzer
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: Marks And Spencer
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: curtis debord
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: curtis debord
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: post brothers
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: Konsulenter
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: Klaer
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: klaer
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: Konsulenter
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: gta 5 hack
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: link k schwartz
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: link schwartz
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: link schwartz
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: link schwartz
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: link k schwartz
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: link schwartz
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: link schwartz
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: link schwartz
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: link k schwartz
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: link schwartz
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: curtis debord
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: qcservices
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    comunicação visual em curitiba letras caixa toldos luminosos, banners
  • Response
    Response: cleaning service
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: Vet Review
    I really love your blog and appreciate your effort for writing a good blog post.
  • Response
    click here for top quality posicionamiento seo barcelona anywhere
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: sbwire.com
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Intellectual Hedonism - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: kpaik.com
    Carl Franklin - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: Inflatable Kayak
    Carl Franklin - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: fabric garages
    Carl Franklin - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: Online reputation
    Carl Franklin - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: any games hacks
    Carl Franklin - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: game hacksd
    Carl Franklin - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Html is a very nice and easy to learn laungauge.
  • Response
    Carl Franklin - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Response: Discover More
    Carl Franklin - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    Carl Franklin - Blog - Carl's File Uploader - A nice little file uploader for HTML/JS/JQuery/WebAPI
  • Response
    agencia de sites em curitiba criação de sites
  • Response
    Response: new year 2016
    rtgj
  • Response
    Letras Caixa em Cutiba. Empresa especializada em comunicação visual e letras caixa na cidade de Curitiba
  • Response
    вконтакте
  • Response
    TDF 2016 live

Reader Comments (4)

So, I happened to check out your twitter feed after listening to a recent DnR on Azure. I found this link on your website, and this looked like something I am looking for at the moment. Developing a PoC for a new client using Web API and I need a file uploader... :)

I'll check it out.....

June 26, 2013 | Unregistered CommenterDan Douglas

Carl's got Chops, what can you say!

August 6, 2013 | Unregistered CommenterAnonymous Coward

Hi,

Was playing with this.. some time, when you upload a file, a packet gets "lost" and the resulting file is uploaded but corrupted.. You don't get any errors on the client nor the server... really odd?

Don't suppose you know why that could be / point me in the right direction?

Awsome utility....

February 14, 2014 | Unregistered CommenterDave

Hi Carl, Love your show(s)! Listen to one mostly at least once a week. I heard about your file uploader a while back, and now finally an enhancement came up where I decided to try it out.

I followed the precise instructions above (/in the readme) but got no results until I noticed:
1. The js file in the current .zip to download has filename 'CarsFileUploader.js'. And you including 'CarlsFileUploader.js' in your code. E.g. there's an L missing :).
2. The used jQuery 1.7.1 is not included in the zip file. So you might wanna do that, or add an instruction to the list for other dombo's like me. E.g. to download it - for instance at http://code.jquery.com/jquery-1.7.1.min.js - and then add it in the 'Scripts' folder as well.. :).

Well it worked like a charm after those two fixes. You're brilliant! Now to incorporate this into my main app... :)

April 8, 2014 | Unregistered CommenterBart van der Wal
Comments for this entry have been disabled. Additional comments may not be added to this entry at this time.
« Perfect Low-Carb Chocolate Ice Cream | Main | I just finished mastering the Good Sponge Sampler Vol 2. Great original music from New London, CT »