Is it possible to upload data URIs with jQuery or PHP?
<p>I have this array at the moment which contains a lot of data URIs. I set this earlier in the code like this:</p>

<pre><code>dataArray = [];
dataArray.push({name : file.name, value : this.result});
</code></pre>

<p>After doing a few things with the data URIs I want to upload them when the user finally presses the upload button, so I pass the data URIs to a PHP file like so:                </p>

<pre><code>$.each(dataArray, function(index, file) {   

    $.post('upload.php', dataArray[index], function(data) {
</code></pre>

<p>And run a few functions inside to show  a loading bar, etc. </p>

<p>Now in the PHP file (upload.php) I have no idea what to do. Each data URI will be posted separately to the PHP file, but how do I treat a data URI in PHP? Usually I would do $_POST to get the data URI itself but I don't really know how to go about pushing this into a folder on the server. Can I treat the data URI as just a normal file and use $_FILES? So far I haven't had much success. </p>
