Added extension to offer server-based import/open ability to browsers without File API support

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1621 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2010-07-01 20:14:12 +00:00
parent d96ddad902
commit f679554ce4
6 changed files with 131 additions and 16 deletions

View File

@@ -0,0 +1,9 @@
<!doctype html>
<?php
// Very minimal PHP file, all we do is Base64 encode the uploaded file and
// return it to the editor
$output = file_get_contents($_FILES['svg_file']['tmp_name']);
?>
<script>
window.top.window.svgEditor.processFile("<?php echo base64_encode($output); ?>", "<?php echo $_REQUEST['type'] ?>");
</script>