Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

HTML5 webserver for file transfer


Best Answer JerseyTechGuy , 23 April 2013 - 03:15 PM

You can use whatever you want.  HTML5 uses technologies like jQuery which is client side anyway (runs in the browser).  But behind the scenes HTML5 upload still converts a file to bytes and sends it to the server in a Post.  The mechanism is still the same.  This is the basic functionality of a web server in general.  If you want to use HTML5 then you simply need to server up pages that have HTML5 code and use jQuery, AJAX or whatever other HTML5 compatible technology you want.

Go to the full post


  • Please log in to reply
3 replies to this topic

#1 xykudyax

xykudyax

    New Member

  • Members
  • Pip
  • 3 posts

Posted 23 April 2013 - 11:14 AM

Is it possible to use HTML5 for designing a web server and use it's code to create a file upload and download feature? or even SD card file browsing (with delete file feature)? I just want to know if it is possible. I wanted to transfer files in and out of the SD card via Ethernet without the need to create an external software (witch means only using the browser).

 

Thank you for you time.

 

Francisco Dias



#2 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 23 April 2013 - 11:22 AM

Search for NeonMika web server. It's robust and ready to run on Netduino.

#3 xykudyax

xykudyax

    New Member

  • Members
  • Pip
  • 3 posts

Posted 23 April 2013 - 11:34 AM

The problem is that file upload is only possible if we have to write the file-data (bytes) by hand (or so it seems) 

[color=rgb(37,51,64);font-family:'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;font-size:13px;]fileUpload (Uploads a file to the path on the SD card via POST. You have to write the file-data (bytes) into the POST body)[/color]
[color=rgb(37,51,64);font-family:'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;font-size:13px;]-> netduinoplus/upload?path=[a-Z][/color]
 

Returning to my original post, it is absolutly impossible to use HTML5, is that it? :(



#4 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 23 April 2013 - 03:15 PM   Best Answer

You can use whatever you want.  HTML5 uses technologies like jQuery which is client side anyway (runs in the browser).  But behind the scenes HTML5 upload still converts a file to bytes and sends it to the server in a Post.  The mechanism is still the same.  This is the basic functionality of a web server in general.  If you want to use HTML5 then you simply need to server up pages that have HTML5 code and use jQuery, AJAX or whatever other HTML5 compatible technology you want.


  • xykudyax likes this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.