Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added fileupload and fileuploadall #64

Merged
merged 1 commit into from
Oct 24, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions data/en/fileupload.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name":"fileUpload",
"type":"function",
"syntax":"fileupload(string destination,[string fileField,[string accept,[string nameConflict]]])",
"returns":"struct",
"related":["fileUploadAll"],
"description":"Uploads file to a directory on the server.",
"params": [
{"name":"destination","description":"Path of directory in which to upload the file. If not an absolute path (starting with a drive letter and a colon, or a forward or backward slash), it is relative to the ColdFusion temporary directory returned by the function getTempDirectory. If the destination you specify does not exist, ColdFusion creates a file with the specified destination name. For example, if you specify the destination C:\XYZ, ColdFusion creates a file XYZ in the C: drive.","required":true,"default":"","type":"String","values":[]},
{"name":"fileField","description":"Name of form field used to select the file. Do not use number signs (#) to specify the field name.","required":false,"default":"","type":"String","values":[]},
{"name":"accept","description":"Limits the MIME types to accept. Comma-delimited list. For example, the following code permits JPEG and Microsoft Word file uploads:'image/jpg,application/msword' .The browser uses the filename extension to determine file type.","required":false,"default":"","type":"String","values":[]},
{"name":"nameConflict","description":"Action to take if file has the same name of a file in the directory.","required":false,"default":"","type":"String","values":["Error","Skip","Overwrite","MakeUnique"]}
],
"engines": {
"coldfusion": {"minimum_version":"9.0.1", "notes":"", "docs":"https://wikidocs.adobe.com/wiki/display/coldfusionen/FileUpload"},
"railo": {"minimum_version":"", "notes":"", "docs":"http://railodocs.org/index.cfm/function/fileupload/"},
"openbd": {"minimum_version":"", "notes":"", "docs":"http://openbd.org/manual/?/function/fileUpload"}
},
"links": [

]

}
22 changes: 22 additions & 0 deletions data/en/fileuploadall.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name":"fileUploadAll",
"type":"function",
"syntax":"fileupload(string destination,[string accept,[string nameConflict]])",
"returns":"array",
"related":["fileUpload"],
"description":"Uploads all files sent to the page in an HTTP request to a directory on the server.",
"params": [
{"name":"destination","description":"Path of directory in which to upload the file. If not an absolute path (starting with a drive letter and a colon, or a forward or backward slash), it is relative to the ColdFusion temporary directory returned by the function getTempDirectory. If the destination you specify does not exist, ColdFusion creates a file with the specified destination name. For example, if you specify the destination C:\XYZ, ColdFusion creates a file XYZ in the C: drive.","required":true,"default":"","type":"String","values":[]},
{"name":"accept","description":"Limits the MIME types to accept. Comma-delimited list. For example, the following code permits JPEG and Microsoft Word file uploads:'image/jpg,application/msword' .The browser uses the filename extension to determine file type.","required":false,"default":"","type":"String","values":[]},
{"name":"nameConflict","description":"Action to take if file has the same name of a file in the directory.","required":false,"default":"","type":"String","values":["Error","Skip","Overwrite","MakeUnique"]}
],
"engines": {
"coldfusion": {"minimum_version":"9.0.1", "notes":"", "docs":"https://wikidocs.adobe.com/wiki/display/coldfusionen/FileUploadAll"},
"railo": {"minimum_version":"", "notes":"", "docs":"http://railodocs.org/index.cfm/function/fileuploadall/"},
"openbd": {"minimum_version":"", "notes":"", "docs":"http://openbd.org/manual/?/function/fileUploadAll"}
},
"links": [

]

}