Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Maybe the problem is with the URL (more specifically, the extension). Normally, you would use Content-Disposition header, but I understand that this is not desirable when delivering content to mobiles.</p> <p>Try using <code>localhost/myscript.php/myvideo.mp4</code></p> <blockquote> <p>It is important not to use the "Content-Disposition" HTTP header, since some phones refuse to accept content when using it. By including the filename on the URL, you will trick the phone to think it's a real file and to accept it.</p> <p>Now, when you send the download URL to the customer, you don't normally know yet what device the customer has, so you don't know what file formats the device will support. Therefore, you can't include the filename on that URL, and once again, you will need an intermediate download page. Once more, we will use a URL like:</p> <pre><code>http://wap.mydomain.tld/get.php/123456abcdef </code></pre> <p>This time, when the customer connects to download the content, the get.php script will not create a temporary file, but point to another script which streams the file contents. Supposing the resultant content to download will be "image.jpg", the intermediate download page could point the customer to a URL like:</p> <pre><code>http://wap.mydomain.tld/download.php/123456abcdef/image.jpg </code></pre> </blockquote> <p>From ( <a href="http://mobiforge.com/developing/story/content-delivery-mobile-devices" rel="nofollow">http://mobiforge.com/developing/story/content-delivery-mobile-devices</a> )</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload