Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F947553
ReceiveFile.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
719 B
Subscribers
None
ReceiveFile.php
View Options
<?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
(
'status'
=>
"success"
,
'details'
=>
$_FILES
[
$name
]
);
}
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>
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Apr 26, 12:21 (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27460
Default Alt Text
ReceiveFile.php (719 B)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment