Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I make Opera upload files like other browsers?
    text
    copied!<p>When uploading one file using <code>&lt;input type="file" /&gt;</code> in Opera, it works as expected. That is, you find the expected file data in $_FILES in PHP server side.</p> <p>However, when I try to upload several files at once using Opera, by setting <code>&lt;input type="file" min="1" max="999" /&gt;</code> then all the files' contents are glued together in one long string and sent as POST data. All the files in this string are separated by headers such as this:</p> <pre><code>------------94QV8HRqBwta8NY4L2WH0r Content-Disposition: form-data; name="file[]"; filename="xxx1069225496.xml" Content-Type: text/xml &lt;?xml&gt; ... </code></pre> <p>Opera follows the Webforms 2.0 standard, I know. But is there a simple way to make Opera send multiple files in the same fashion other browsers do, or will I have to write an interpreter to get files just from Opera?</p> <p>Thanks for any help. Below is the HTML I'm currently using.</p> <hr> <pre><code>&lt;div id="filearea"&gt; &lt;input type="file" min="1" max="6000" accept="text/xml" name="file[]" style="padding: 1px; margin: 2px 0px;" /&gt; &lt;/div&gt; </code></pre> <hr> <p>This is how the var_dump of $_POST looks (I've erased any actual XML data, taking up space)</p> <pre><code>array(1) { ["file"]=&gt; array(1) { [0]=&gt; string(4209) "------------94QV8HRqBwta8NY4L2WH0r Content-Disposition: form-data; name="file[]"; filename="1219854274.xml" Content-Type: text/xml &lt;?xml version="1.0"?&gt; ... ------------94QV8HRqBwta8NY4L2WH0r Content-Disposition: form-data; name="file[]"; filename="xxx1069225496.xml" Content-Type: text/xml &lt;?xml version="1.0"?&gt; ... ------------94QV8HRqBwta8NY4L2WH0r Content-Disposition: form-data; name="file[]"; filename="xxx1111008062.xml" Content-Type: text/xml &lt;?xml version="1.0"?&gt; ... ------------94QV8HRqBwta8NY4L2WH0r Content-Disposition: form-data; name="file[]"; filename="1219854274.xml" Content-Type: text/xml &lt;?xml version="1.0"?&gt; ... " } } </code></pre>
 

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