www.webdeveloper.com
Results 1 to 7 of 7

Thread: Multiple File Upload to Web Server

  1. #1
    Join Date
    Jan 2014
    Posts
    4

    Question Multiple File Upload to Web Server

    I've had a bit play with JavaScript drag and drop and I've gotten my head around how to load files within the (client-side) script.. how to identify the names of the files that have been drag/dropped etc.. but how do I take all of these files and 'post' them to the my web server?

    Can JavaScript alone do this or do I need some other 'glue' technology to do this?

    My web server is CocoaHTTP, running on my iPhone.

    I'm not very familiar with web development - I'm mainly an application developer so this is all rather new to me.

    Ideally I would like to launch uploads asynchronously and get some sort of progress (percentage) feedback. I've seen this done with the iPhone/Android VLC media player and sites such as MediaFire.com when uploading files.

    I would really appreciate it if somebody can point me in the right direction for which technology to use or better still, a suitable tutorial or example. I've been Googling for solutions for days but I'm not finding anything helpful - only more questions arise.

  2. #2
    Join Date
    Oct 2013
    Posts
    560
    Possible inspiration:
    Drag-n-drop -- http://tutorialzine.com/2011/09/html...ad-jquery-php/
    Display -- http://sye.dk/sfpg/

  3. #3
    Join Date
    Jan 2014
    Posts
    4
    Quote Originally Posted by Kevin2 View Post
    Possible inspiration:
    Drag-n-drop -- http://tutorialzine.com/2011/09/html...ad-jquery-php/
    Display -- http://sye.dk/sfpg/
    Thanks I'll have a look at the drag n drop one. I think I found that yesterday (or similar) and perhaps ignored it when I saw "AJAX". What's AJAX? Is this a server or client-side thing? Just worried about pre-requisits for getting this all to work.

  4. #4
    Join Date
    Oct 2013
    Posts
    560

  5. #5
    Join Date
    Jan 2014
    Posts
    4
    Quote Originally Posted by Kevin2 View Post
    Thanks. That TutorialZine link you provided me looked really promising. Only problem for me is that CocoaHTTPServer doesn't seem to support PHP. Any ideas on how else I could implement the .PHP side of things?

  6. #6
    Join Date
    Oct 2013
    Posts
    560
    Umm... a server besides something running on your iPhone? Although I don't quite understand how you do that, even after looking at the cocoaHTTP info on Github, and looking through the App Store.

  7. #7
    Join Date
    Jan 2014
    Posts
    4
    CocoaHTTPServer is a lump of source that I compile into my own app. That effectively allows my iPhone app to become a web server. I can then use my PC web browser to view pages from my iPhone web server.. run JavaScript etc. It will support uploading of files using POST etc but it won't run .PHP on the server (iPhone app) side. I need to find another way of getting multiple file uploads to work without PHP.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles