Sha256: a8c3ee9c3ecaeb67979c73af909d8dba9d9c859aec667f516b37f04d34995d20

Contents?: true

Size: 972 Bytes

Versions: 20

Compression:

Stored size: 972 Bytes

Contents

<?php

// THIS IS AN EXAMPLE
// you will obviously need to do more server side work than I am doing here to check and move your upload.
// API is up for discussion, jump on http://dojotoolkit.org/forums

// JSON.php is available in dojo svn checkout
require("../../../dojo/tests/resources/JSON.php");
$json = new Services_JSON();

// fake delay
sleep(3);
$name = empty($_REQUEST['name'])? "default" : $_REQUEST['name'];
if(is_array($_FILES)){
	$ar = array(
		// lets just pass lots of stuff back and see what we find.
		// the _FILES aren't coming through in IE6 (maybe 7)
		'status' => "success",
		'name' => $name,
		'request' => $_REQUEST,
		'postvars' => $_POST,
		'details' => $_FILES,
		// and some static subarray just to see
		'foo' => array('foo'=>"bar")
	);

}else{
	$ar = array(
		'status' => "failed",
		'details' => ""
	);
}

// yeah, seems you have to wrap iframeIO stuff in textareas?
$foo = $json->encode($ar);
?>
<textarea><?php print $foo; ?></textarea>

Version data entries

20 entries across 20 versions & 4 rubygems

Version Path
dojox-rails-0.14.0 vendor/assets/javascripts/dojox/form/resources/RecieveFile.php
dojox-rails-0.13.0 vendor/assets/javascripts/dojox/form/resources/RecieveFile.php
dojox-rails-0.12.0 vendor/assets/javascripts/dojox/form/resources/RecieveFile.php
dojox-rails-0.11.0 vendor/assets/javascripts/form/resources/RecieveFile.php
dojo-rails-0.9.4 vendor/assets/javascripts/dojox/form/resources/RecieveFile.php
dojo-rails-0.9.3 vendor/assets/javascripts/dojox/form/resources/RecieveFile.php
dojo-rails-0.9.2 vendor/assets/javascripts/dojox/form/resources/RecieveFile.php
dojo-rails-0.9.1 vendor/assets/javascripts/dojox/form/resources/RecieveFile.php
dojo-rails-0.9.0 vendor/assets/javascripts/dojox/form/resources/RecieveFile.php
dojo_src-1.5.0 dojo/dojox/form/resources/RecieveFile.php
dojo_src-1.4.3 dojo/dojox/form/resources/RecieveFile.php
dojo_src-1.4.102 dojo/dojox/form/resources/RecieveFile.php
dojo-pkg-1.132.0 data/dojo-release-1.3.2-src/dojox/form/resources/RecieveFile.php
dojo-pkg-1.111.0 data/dojo-release-1.1.1-src/dojox/widget/FileInput/ReceiveFile.php
dojo-pkg-1.120.0 data/dojo-release-1.2.0-src/dojox/form/resources/RecieveFile.php
dojo-pkg-1.121.0 data/dojo-release-1.2.1-src/dojox/form/resources/RecieveFile.php
dojo-pkg-1.122.0 data/dojo-release-1.2.2-src/dojox/form/resources/RecieveFile.php
dojo-pkg-1.123.0 data/dojo-release-1.2.3-src/dojox/form/resources/RecieveFile.php
dojo-pkg-1.130.0 data/dojo-release-1.3.0-src/dojox/form/resources/RecieveFile.php
dojo-pkg-1.131.0 data/dojo-release-1.3.1-src/dojox/form/resources/RecieveFile.php