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:
9
editor/extensions/fileopen.php
Normal file
9
editor/extensions/fileopen.php
Normal 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>
|
||||
Reference in New Issue
Block a user