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.


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/" - 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" ""> 
      <html xmlns="" xmlns:locify="" xml:lang="en" lang="en"> 
            <title>File upload
            <meta http-equiv="content-type" content="text/html; charset=UTF-8">		 	
            <form enctype="multipart/form-data" action="upload.php" method="POST">  					
              Choose a file to upload (max 500kB): 
                <input name="uploadedfile" type="file" accept="image/*" /><br />  						
                <input type="submit" value="Upload File" />  					

    How it looks like

    Upload screenshot