Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
229
Merge Requests
229
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
9f60c14b
Commit
9f60c14b
authored
Jan 26, 2009
by
drumm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#360038
by sun. Documentation improvement.
parent
b9378534
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
includes/file.inc
includes/file.inc
+8
-11
No files found.
includes/file.inc
View file @
9f60c14b
...
...
@@ -154,20 +154,17 @@ function file_check_path(&$path) {
/**
* Check if $source is a valid file upload. If so, move the file to Drupal's tmp dir
* and return it as an object.
* Verify an uploaded file.
*
* The use of SESSION['file_uploads'] should probably be externalized to upload.module
*
* @todo Rename file_check_upload to file_prepare upload.
* @todo Refactor or merge file_save_upload.
* @todo Extenalize SESSION['file_uploads'] to modules.
*
* @param $source An upload source (the name of the upload form item), or a file
* @return FALSE for an invalid file or upload. A file object for valid uploads/files.
* Check if $source is a valid file upload. If so, move the file to the
* temporary directory and return it as an object.
*
* @param $source
* An upload source (the name of the upload form item), or a file.
* @return
* FALSE for an invalid file or upload. A file object for valid
* uploads/files.
*/
function
file_check_upload
(
$source
=
'upload'
)
{
// Cache for uploaded files. Since the data in _FILES is modified
// by this function, we cache the result.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment