My favorites
|
Sign in
gwtsite
The source code from the demos hosted at gwtsite.com
Project Home
Downloads
Wiki
Issues
Source
Checkout
|
Browse
|
Changes
|
r13
r14›
Source path:
svn
/
trunk
/
FileUploader
/
src
/
com
/
gwtsite
/
public
/
upload.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// This code was taken from the online php manual at:
// http://us3.php.net/features.file-upload
<?php
$uploaddir = './upload';
$uploadfile = $uploaddir . basename($_FILES['uploadFormElement']['name']);
echo '<pre>';
if (move_uploaded_file($_FILES['uploadFormElement']['tmp_name'], $uploadfile)) {
echo "File is valid, and was successfully uploaded.\n";
} else {
echo "Possible file uploadhttp://us3.php.net/features.file-upload attack!\n";
}
echo 'Here is some more debugging info:';
print_r($_FILES);
print "</pre>";
?>
Show details
Hide details
Change log
r13
by fongcn on Feb 19, 2008
Diff
Initial import.
Go to:
/trunk/FileUploader/.classpath
/trunk/FileUploader/.project
...ileUploader/FileUploader-compile
.../FileUploader/FileUploader-shell
...FileUploader/FileUploader.launch
/trunk/FileUploader/src
/trunk/FileUploader/src/com
/trunk/FileUploader/src/com/gwtsite
...com/gwtsite/FileUploader.gwt.xml
...eUploader/src/com/gwtsite/client
...gwtsite/client/FileUploader.java
...eUploader/src/com/gwtsite/public
...gwtsite/public/FileUploader.html
...rc/com/gwtsite/public/upload.php
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 531 bytes, 16 lines
View raw file
Hosted by