File upload

You can upload files from Locify to your web service! You can upload any file in users phone or choose just images, videos, places or routes.

Format

We support standard XHTML <input type="file" /> . Enctype of the XHTML form has to be set to "multipart/form-data". In attribute "accept" you can specify the type of the file. If you leave "accept", user can choose any file on his phone.

Posibble "accept" values:
  • "image/*" - User can upload just images
  • "video/*" - User can upload just videos
  • "application/vnd.locify.place" - User can upload KML places
  • "application/vnd.locify.route" - User can upload KML routes
  • Example

    <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
      <html xmlns="http://www.w3.org/1999/xhtml" xmlns:locify="http://client.locify.com/locify_ns/1.0" xml:lang="en" lang="en"> 
        <html>  	
          <head>  		
            <title>File upload
            </title>  		
            <meta http-equiv="content-type" content="text/html; charset=UTF-8">		 	
          </head>  	
          <body>  						
            <form enctype="multipart/form-data" action="upload.php" method="POST">  					
              <fieldset>  						
              Choose a file to upload (max 500kB): 
                <input name="uploadedfile" type="file" accept="image/*" /><br />  						
                <input type="submit" value="Upload File" />  					
                </fieldset>  				
            </form>  				
          </body> 
        </html>

    How it looks like

    Upload screenshot