{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"src","path":"src","contentType":"directory"},{"name":"test","path":"test","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"LICENSE.txt","path":"LICENSE.txt","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"composer.json","path":"composer.json","contentType":"file"}],"totalCount":6}},"fileTreeProcessingTime":1.795395,"foldersToFetch":[],"repo":{"id":27613423,"defaultBranch":"master","name":"class.upload.php","ownerLogin":"verot","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2014-12-05T22:43:23.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/4622582?v=4","public":true,"private":false,"isOrgOwned":false},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"master","listCacheKey":"v0:1701904111.0","canEdit":false,"refType":"branch","currentOid":"befbccc2330b0ccb148fc87495896bd7b57f8c57"},"path":"README.md","currentUser":null,"blob":{"rawLines":null,"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/verot/class.upload.php/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"README.md","displayUrl":"https://github.com/verot/class.upload.php/blob/master/README.md?raw=true","headerInfo":{"blobSize":"26.4 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"d885eef","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fverot%2Fclass.upload.php%2Fblob%2Fmaster%2FREADME.md","isCSV":false,"isRichtext":true,"toc":[{"level":1,"text":"class.upload.php","anchor":"classuploadphp","htmlText":"class.upload.php"},{"level":2,"text":"What does it do?","anchor":"what-does-it-do","htmlText":"What does it do?"},{"level":2,"text":"Install via composer","anchor":"install-via-composer","htmlText":"Install via composer"},{"level":2,"text":"Demo and examples","anchor":"demo-and-examples","htmlText":"Demo and examples"},{"level":2,"text":"How to use it?","anchor":"how-to-use-it","htmlText":"How to use it?"},{"level":3,"text":"How does it work?","anchor":"how-does-it-work","htmlText":"How does it work?"},{"level":3,"text":"Namespacing","anchor":"namespacing","htmlText":"Namespacing"},{"level":3,"text":"How to process local files?","anchor":"how-to-process-local-files","htmlText":"How to process local files?"},{"level":3,"text":"How to process a file uploaded via XMLHttpRequest?","anchor":"how-to-process-a-file-uploaded-via-xmlhttprequest","htmlText":"How to process a file uploaded via XMLHttpRequest?"},{"level":3,"text":"How to process raw file data?","anchor":"how-to-process-raw-file-data","htmlText":"How to process raw file data?"},{"level":3,"text":"How to set the language?","anchor":"how-to-set-the-language","htmlText":"How to set the language?"},{"level":3,"text":"How to output the resulting file or picture directly to the browser?","anchor":"how-to-output-the-resulting-file-or-picture-directly-to-the-browser","htmlText":"How to output the resulting file or picture directly to the browser?"},{"level":3,"text":"Warning about security","anchor":"warning-about-security","htmlText":"Warning about security"},{"level":3,"text":"Troubleshooting","anchor":"troubleshooting","htmlText":"Troubleshooting"},{"level":2,"text":"Processing parameters","anchor":"processing-parameters","htmlText":"Processing parameters"},{"level":3,"text":"File handling","anchor":"file-handling","htmlText":"File handling"},{"level":3,"text":"Image handling","anchor":"image-handling","htmlText":"Image handling"},{"level":3,"text":"Image checking","anchor":"image-checking","htmlText":"Image checking"},{"level":3,"text":"Image resizing","anchor":"image-resizing","htmlText":"Image resizing"},{"level":3,"text":"Image effects","anchor":"image-effects","htmlText":"Image effects"},{"level":3,"text":"Image text","anchor":"image-text","htmlText":"Image text"},{"level":3,"text":"Image transformations","anchor":"image-transformations","htmlText":"Image transformations"},{"level":3,"text":"Image borders","anchor":"image-borders","htmlText":"Image borders"},{"level":3,"text":"Image watermark","anchor":"image-watermark","htmlText":"Image watermark"},{"level":3,"text":"Image reflections","anchor":"image-reflections","htmlText":"Image reflections"},{"level":2,"text":"Values that can be read before calling process()","anchor":"values-that-can-be-read-before-calling-process","htmlText":"Values that can be read before calling process()"},{"level":2,"text":"Values that can be read after calling process()","anchor":"values-that-can-be-read-after-calling-process","htmlText":"Values that can be read after calling process()"},{"level":2,"text":"Requirements","anchor":"requirements","htmlText":"Requirements"}],"lineInfo":{"truncatedLoc":"700","truncatedSloc":"572"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Markdown","languageID":222,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/verot/class.upload.php/blob/master/README.md","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/verot/class.upload.php/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/verot/class.upload.php/raw/master/README.md","renderImageOrRaw":false,"richText":"

class.upload.php

\n

Homepage : http://www.verot.net/php_class_upload.htm

\n

Demo : http://www.verot.net/php_class_upload_samples.htm

\n

Donations: http://www.verot.net/php_class_upload_donate.htm

\n

Commercial use: http://www.verot.net/php_class_upload_license.htm

\n

What does it do?

\n

This class manages file uploads for you. In short, it manages the uploaded file, and allows you to do whatever you want with the file, especially if it is an image, and as many times as you want.

\n

It is the ideal class to quickly integrate file upload in your site. If the file is an image, you can convert, resize, crop it in many ways. You can also apply filters, add borders, text, watermarks, etc... That's all you need for a gallery script for instance. Supported formats are PNG, JPG, GIF, WEBP and BMP.

\n

You can also use the class to work on local files, which is especially useful to use the image manipulation features. The class also supports Flash uploaders and XMLHttpRequest.

\n

The class works with PHP 5.3+, PHP 7 and PHP 8 (use version 1.x for PHP 4 support), and its error messages can be localized at will.

\n

Install via composer

\n

Edit your composer.json file to include the following:

\n
    {\n       \"require\": {\n           \"verot/class.upload.php\": \"*\"\n       }\n    }\n
\n

Or install it directly:

\n
    composer require verot/class.upload.php\n
\n

Demo and examples

\n

Check out the test/ directory, which you can load in your browser. You can test the class and its different ways to instantiate it, see some code examples, and run some tests.

\n

How to use it?

\n

Create a simple HTML file, with a form such as:

\n
<form enctype=\"multipart/form-data\" method=\"post\" action=\"upload.php\">\n  <input type=\"file\" size=\"32\" name=\"image_field\" value=\"\">\n  <input type=\"submit\" name=\"Submit\" value=\"upload\">\n</form>
\n

Create a file called upload.php (into which you have first loaded the class):

\n
$handle = new \\Verot\\Upload\\Upload($_FILES['image_field']);\nif ($handle->uploaded) {\n  $handle->file_new_name_body   = 'image_resized';\n  $handle->image_resize         = true;\n  $handle->image_x              = 100;\n  $handle->image_ratio_y        = true;\n  $handle->process('/home/user/files/');\n  if ($handle->processed) {\n    echo 'image resized';\n    $handle->clean();\n  } else {\n    echo 'error : ' . $handle->error;\n  }\n}
\n

How does it work?

\n

You instanciate the class with the $_FILES['my_field'] array where my_field is the field name from your upload form. The class will check if the original file has been uploaded to its temporary location (alternatively, you can instanciate the class with a local filename).

\n

You can then set a number of processing variables to act on the file. For instance, you can rename the file, and if it is an image, convert and resize it in many ways. You can also set what will the class do if the file already exists.

\n

Then you call the function process() to actually perform the actions according to the processing parameters you set above. It will create new instances of the original file, so the original file remains the same between each process. The file will be manipulated, and copied to the given location. The processing variables will be reset once it is done.

\n

You can repeat setting up a new set of processing variables, and calling process() again as many times as you want. When you have finished, you can call clean() to delete the original uploaded file.

\n

If you don't set any processing parameters and call process() just after instanciating the class. The uploaded file will be simply copied to the given location without any alteration or checks.

\n

Don't forget to add enctype=\"multipart/form-data\" in your form tag <form> if you want your form to upload the file.

\n

Namespacing

\n

The class is now namespaced in the Verot/Upload namespace. If you have the error Fatal error: Class 'Upload' not found, then use the class fully qualified name, or instantiate the class with its fully qualified name:

\n
use Verot\\Upload\\Upload;\n$handle = new Upload($_FILES['image_field']);
\n

or

\n
$handle = new \\Verot\\Upload\\Upload($_FILES['image_field']);
\n

How to process local files?

\n

Instantiate the class with the local filename, as following:

\n
$handle = new Upload('/home/user/myfile.jpg');
\n

How to process a file uploaded via XMLHttpRequest?

\n

Instantiate the class with the special php: keyword, as following:

\n
$handle = new Upload('php:'.$_SERVER['HTTP_X_FILE_NAME']);
\n

Prefixing the argument with php: tells the class to retrieve the uploaded data in php://input, and the rest is the stream's filename, which is generally in $_SERVER['HTTP_X_FILE_NAME']. But you can use any other name you see fit:

\n
$handle = new Upload('php:mycustomname.ext');
\n

How to process raw file data?

\n

Instantiate the class with the special data: keyword, as following:

\n
$handle = new Upload('data:'.$file_contents);
\n

If your data is base64-encoded, the class provides a simple base64: keyword, which will decode your data prior to using it:

\n
$handle = new Upload('base64:'.$base64_file_contents);
\n

How to set the language?

\n

Instantiate the class with a second argument being the language code:

\n
$handle = new Upload($_FILES['image_field'], 'fr_FR');\n$handle = new Upload('/home/user/myfile.jpg', 'fr_FR');
\n

How to output the resulting file or picture directly to the browser?

\n

Simply call process() without an argument (or with null as first argument):

\n
$handle = new Upload($_FILES['image_field']);\nheader('Content-type: ' . $handle->file_src_mime);\necho $handle->process();\ndie();
\n

Or if you want to force the download of the file:

\n
$handle = new Upload($_FILES['image_field']);\nheader('Content-type: ' . $handle->file_src_mime);\nheader(\"Content-Disposition: attachment; filename=\".rawurlencode($handle->file_src_name).\";\");\necho $handle->process();\ndie();
\n

Warning about security

\n

By default, the class relies on MIME type detection to assess whether the file can be uploaded or not. Several MIME type detection methods are used, depending on the server configuration. The class relies on a blacklist of dangerous file extensions to prevent uploads (or to rename dangerous scripts as text files), as well as a whitelist of accepted MIME types.

\n

But it is not the purpose of this class to do in-depth checking and heuristics to attempt to detect maliciously crafted files. For instance, an attacker can craft a file that will have the correct MIME type, but will carry a malicious payload, such as a valid GIF file which would contain some code leading to a XSS vulnerability. If this GIF file has a .html extension, it may be uploaded (depending on the class's settings) and display an XSS vulnerability.

\n

However, you can mitigate this by restricting the kind of files that can be uploaded, using allowed and forbidden, to whitelist and blacklist files depending on their MIME type or extension. The most secure option would be to only whitelist extensions that you want to allow through, and then making sure that your server always serves the file with the content-type based on the file extension.

\n

For instance, if you only want to allow one type of file, you could whitelist only its file extension. In the following example, only .html files are let through, and are not converted to a text file:

\n
$handle->allowed   = array('html');\n$handle->forbidden = array();\n$handle->no_script = false;
\n

In the end, it is your responsibility to make sure the correct files are uploaded. But more importantly, it is your responsibility to serve the uploaded files correctly, for instance by forcing the server to always provide the content-type based on the file extension.

\n

Troubleshooting

\n

If the class doesn't do what you want it to do, you can display the log, in order to see in details what the class does. To obtain the log, just add this line at the end of your code:

\n
echo $handle->log;
\n

Your problem may have been already discussed in the Frequently Asked Questions : http://www.verot.net/php_class_upload_faq.htm

\n

Failing that, you can search in the forums, and ask a question there: http://www.verot.net/php_class_upload_forum.htm. Please don't use Github issues to ask for help.

\n

Processing parameters

\n
\n

Note: all the parameters in this section are reset after each process.

\n
\n

File handling

\n\n
$handle->file_new_name_body = 'new name';
\n\n
$handle->file_name_body_add = '_uploaded';
\n\n
$handle->file_name_body_pre = 'thumb_';
\n\n
$handle->file_new_name_ext = 'txt';
\n\n
$handle->file_safe_name = true;
\n\n
$handle->file_force_extension = true;
\n\n
$handle->file_overwrite = true;
\n\n
$handle->file_auto_rename = true;
\n\n
$handle->dir_auto_create = true;
\n\n
$handle->dir_auto_chmod = true;
\n\n
$handle->dir_chmod = 0777;
\n\n
$handle->file_max_size = '1024'; // 1KB
\n\n
$handle->mime_check = true;
\n\n
$handle->no_script = false;
\n\n
$handle->allowed = array('application/pdf','application/msword', 'image/*');
\n\n
$handle->forbidden = array('application/*');
\n

Image handling

\n\n
$handle->image_convert = 'jpg';
\n\n
$handle->image_background_color = '#FF00FF';
\n\n
$handle->image_default_color = '#FF00FF';
\n\n
$handle->png_compression = 9;
\n\n
$handle->webp_quality = 50;
\n\n
$handle->jpeg_quality = 50;
\n\n
$handle->jpeg_size = 3072;
\n\n
$handle->image_interlace = true;
\n

Image checking

\n

The following eight settings can be used to invalidate an upload if the file is an image (note that open_basedir restrictions prevent the use of these settings)

\n\n
$handle->image_max_width = 200;
\n\n
$handle->image_max_height = 100;
\n\n
$handle->image_max_pixels = 50000;
\n\n
$handle->image_max_ratio = 1.5;
\n\n
$handle->image_min_width = 100;
\n\n
$handle->image_min_height = 500;
\n\n
$handle->image_min_pixels = 20000;
\n\n
$handle->image_min_ratio = 0.5;
\n

Image resizing

\n\n
$handle->image_resize = true;
\n

The following variables are used only if image_resize == true

\n\n
$handle->image_x = 100;
\n\n
$handle->image_y = 200;
\n

Use either one of the following

\n\n
$handle->image_ratio = true;
\n\n
$handle->image_ratio_crop = true;
\n\n
$handle->image_ratio_fill = true;
\n\n
$handle->image_ratio_x = true;
\n\n
$handle->image_ratio_y = true;
\n\n
$handle->image_ratio_pixels = 25000;
\n

And eventually prevent enlarging or shrinking images

\n\n
$handle->image_no_enlarging = true;
\n\n
$handle->image_no_shrinking = true;
\n

Image effects

\n

The following image manipulations require GD2+

\n\n
$handle->image_brightness = 40;
\n\n
$handle->image_contrast = 50;
\n\n
$handle->image_opacity = 50;
\n\n
$handle->image_tint_color = '#FF0000';
\n\n
$handle->image_overlay_color = '#FF0000';
\n\n
$handle->image_overlay_opacity = 20;
\n\n
$handle->image_negative = true;
\n\n
$handle->image_greyscale = true;
\n\n
$handle->image_threshold = 20;
\n\n
$handle->image_pixelate = 10;
\n\n
$handle->image_unsharp = true;
\n\n
$handle->image_unsharp_amount = 120;
\n\n
$handle->image_unsharp_radius = 1;
\n\n
$handle->image_unsharp_threshold = 0;
\n

Image text

\n\n
$handle->image_text = 'test';
\n\n
$handle->image_text_direction = 'v';
\n\n
$handle->image_text_color = '#FF0000';
\n\n
$handle->image_text_opacity = 50;
\n\n
$handle->image_text_background = '#FFFFFF';
\n\n
$handle->image_text_background_opacity = 50;
\n\n
$handle->image_text_font = 4; // or './font.gdf' or './font.ttf'
\n\n
$handle->image_text_size = 24;
\n\n
$handle->image_text_angle = 45;
\n\n
$handle->image_text_x = 5;
\n\n
$handle->image_text_y = 5;
\n\n
$handle->image_text_position = 'LR';
\n\n
$handle->image_text_padding = 5;
\n\n
$handle->image_text_padding_x = 2;
\n\n
$handle->image_text_padding_y = 10;
\n\n
$handle->image_text_alignment = 'R';
\n\n
$handle->image_text_line_spacing = 3;
\n

Image transformations

\n\n
$handle->image_auto_rotate = false;
\n\n
$handle->image_flip = 'h';
\n\n
$handle->image_rotate = 90;
\n\n
$handle->image_crop = array(50,40,30,20); OR '-20 20%'...
\n\n
$handle->image_precrop = array(50,40,30,20); OR '-20 20%'...
\n

Image borders

\n\n
$handle->image_bevel = 20;
\n\n
$handle->image_bevel_color1 = '#FFFFFF';
\n\n
$handle->image_bevel_color2 = '#000000';
\n\n
$handle->image_border = '3px'; OR '-20 20%' OR array(3,2)...
\n\n
$handle->image_border_color = '#FFFFFF';
\n\n
$handle->image_border_opacity = 50;
\n\n
$handle->image_border_transparent = '3px'; OR '-20 20%' OR array(3,2)...
\n\n
$handle->image_frame = 2;
\n\n
$handle->image_frame_colors = array('#999999',  '#FF0000', '#666666', '#333333', '#000000');
\n\n
$handle->image_frame_opacity = 50;
\n

Image watermark

\n\n
$handle->image_watermark = 'watermark.png';
\n\n
$handle->image_watermark_x = 5;
\n\n
$handle->image_watermark_y = 5;
\n\n
$handle->image_watermark_position = 'LR';
\n\n
$handle->image_watermark_no_zoom_in = false;
\n\n
$handle->image_watermark_no_zoom_out = true;
\n

Image reflections

\n\n
$handle->image_reflection_height = '25%';
\n\n
$handle->image_reflection_space = 3;
\n\n
$handle->image_default_color = '#000000';
\n\n
$handle->image_reflection_opacity = 60;
\n

Values that can be read before calling process()

\n\n

If the file is a supported image type (and open_basedir restrictions allow it)

\n\n

Values that can be read after calling process()

\n\n

If the file is a supported image type

\n\n

Requirements

\n

Most of the image operations require GD. GD2 is greatly recommended

\n

Version 1.x supports PHP 4, 5 and 7, but is not namespaced. Use it if you need support for PHP <5.3

\n

Version 2.x supports PHP 5.3+, PHP 7 and PHP 8.

\n
","renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"class.upload.php","kind":"section_1","ident_start":2,"ident_end":18,"extent_start":0,"extent_end":27063,"fully_qualified_name":"class.upload.php","ident_utf16":{"start":{"line_number":0,"utf16_col":2},"end":{"line_number":0,"utf16_col":18}},"extent_utf16":{"start":{"line_number":0,"utf16_col":0},"end":{"line_number":700,"utf16_col":0}}},{"name":"What does it do?","kind":"section_2","ident_start":467,"ident_end":483,"extent_start":464,"extent_end":1311,"fully_qualified_name":"What does it do?","ident_utf16":{"start":{"line_number":11,"utf16_col":3},"end":{"line_number":11,"utf16_col":19}},"extent_utf16":{"start":{"line_number":11,"utf16_col":0},"end":{"line_number":23,"utf16_col":0}}},{"name":"Install via composer","kind":"section_2","ident_start":1314,"ident_end":1334,"extent_start":1311,"extent_end":1561,"fully_qualified_name":"Install via composer","ident_utf16":{"start":{"line_number":23,"utf16_col":3},"end":{"line_number":23,"utf16_col":23}},"extent_utf16":{"start":{"line_number":23,"utf16_col":0},"end":{"line_number":41,"utf16_col":0}}},{"name":"Demo and examples","kind":"section_2","ident_start":1564,"ident_end":1581,"extent_start":1561,"extent_end":1764,"fully_qualified_name":"Demo and examples","ident_utf16":{"start":{"line_number":41,"utf16_col":3},"end":{"line_number":41,"utf16_col":20}},"extent_utf16":{"start":{"line_number":41,"utf16_col":0},"end":{"line_number":47,"utf16_col":0}}},{"name":"How to use it?","kind":"section_2","ident_start":1767,"ident_end":1781,"extent_start":1764,"extent_end":8652,"fully_qualified_name":"How to use it?","ident_utf16":{"start":{"line_number":47,"utf16_col":3},"end":{"line_number":47,"utf16_col":17}},"extent_utf16":{"start":{"line_number":47,"utf16_col":0},"end":{"line_number":201,"utf16_col":0}}},{"name":"How does it work?","kind":"section_3","ident_start":2557,"ident_end":2574,"extent_start":2553,"extent_end":3970,"fully_qualified_name":"How does it work?","ident_utf16":{"start":{"line_number":75,"utf16_col":4},"end":{"line_number":75,"utf16_col":21}},"extent_utf16":{"start":{"line_number":75,"utf16_col":0},"end":{"line_number":89,"utf16_col":0}}},{"name":"Namespacing","kind":"section_3","ident_start":3974,"ident_end":3985,"extent_start":3970,"extent_end":4370,"fully_qualified_name":"Namespacing","ident_utf16":{"start":{"line_number":89,"utf16_col":4},"end":{"line_number":89,"utf16_col":15}},"extent_utf16":{"start":{"line_number":89,"utf16_col":0},"end":{"line_number":103,"utf16_col":0}}},{"name":"How to process local files?","kind":"section_3","ident_start":4374,"ident_end":4401,"extent_start":4370,"extent_end":4525,"fully_qualified_name":"How to process local files?","ident_utf16":{"start":{"line_number":103,"utf16_col":4},"end":{"line_number":103,"utf16_col":31}},"extent_utf16":{"start":{"line_number":103,"utf16_col":0},"end":{"line_number":112,"utf16_col":0}}},{"name":"How to process a file uploaded via XMLHttpRequest?","kind":"section_3","ident_start":4529,"ident_end":4579,"extent_start":4525,"extent_end":5017,"fully_qualified_name":"How to process a file uploaded via XMLHttpRequest?","ident_utf16":{"start":{"line_number":112,"utf16_col":4},"end":{"line_number":112,"utf16_col":54}},"extent_utf16":{"start":{"line_number":112,"utf16_col":0},"end":{"line_number":126,"utf16_col":0}}},{"name":"How to process raw file data?","kind":"section_3","ident_start":5021,"ident_end":5050,"extent_start":5017,"extent_end":5375,"fully_qualified_name":"How to process raw file data?","ident_utf16":{"start":{"line_number":126,"utf16_col":4},"end":{"line_number":126,"utf16_col":33}},"extent_utf16":{"start":{"line_number":126,"utf16_col":0},"end":{"line_number":140,"utf16_col":0}}},{"name":"How to set the language?","kind":"section_3","ident_start":5379,"ident_end":5403,"extent_start":5375,"extent_end":5599,"fully_qualified_name":"How to set the language?","ident_utf16":{"start":{"line_number":140,"utf16_col":4},"end":{"line_number":140,"utf16_col":28}},"extent_utf16":{"start":{"line_number":140,"utf16_col":0},"end":{"line_number":149,"utf16_col":0}}},{"name":"How to output the resulting file or picture directly to the browser?","kind":"section_3","ident_start":5603,"ident_end":5671,"extent_start":5599,"extent_end":6180,"fully_qualified_name":"How to output the resulting file or picture directly to the browser?","ident_utf16":{"start":{"line_number":149,"utf16_col":4},"end":{"line_number":149,"utf16_col":72}},"extent_utf16":{"start":{"line_number":149,"utf16_col":0},"end":{"line_number":170,"utf16_col":0}}},{"name":"Warning about security","kind":"section_3","ident_start":6184,"ident_end":6206,"extent_start":6180,"extent_end":8017,"fully_qualified_name":"Warning about security","ident_utf16":{"start":{"line_number":170,"utf16_col":4},"end":{"line_number":170,"utf16_col":26}},"extent_utf16":{"start":{"line_number":170,"utf16_col":0},"end":{"line_number":188,"utf16_col":0}}},{"name":"Troubleshooting","kind":"section_3","ident_start":8021,"ident_end":8036,"extent_start":8017,"extent_end":8652,"fully_qualified_name":"Troubleshooting","ident_utf16":{"start":{"line_number":188,"utf16_col":4},"end":{"line_number":188,"utf16_col":19}},"extent_utf16":{"start":{"line_number":188,"utf16_col":0},"end":{"line_number":201,"utf16_col":0}}},{"name":"Processing parameters","kind":"section_2","ident_start":8655,"ident_end":8676,"extent_start":8652,"extent_end":25534,"fully_qualified_name":"Processing parameters","ident_utf16":{"start":{"line_number":201,"utf16_col":3},"end":{"line_number":201,"utf16_col":24}},"extent_utf16":{"start":{"line_number":201,"utf16_col":0},"end":{"line_number":656,"utf16_col":0}}},{"name":"File handling","kind":"section_3","ident_start":8758,"ident_end":8771,"extent_start":8754,"extent_end":11015,"fully_qualified_name":"File handling","ident_utf16":{"start":{"line_number":207,"utf16_col":4},"end":{"line_number":207,"utf16_col":17}},"extent_utf16":{"start":{"line_number":207,"utf16_col":0},"end":{"line_number":275,"utf16_col":0}}},{"name":"Image handling","kind":"section_3","ident_start":11019,"ident_end":11033,"extent_start":11015,"extent_end":12382,"fully_qualified_name":"Image handling","ident_utf16":{"start":{"line_number":275,"utf16_col":4},"end":{"line_number":275,"utf16_col":18}},"extent_utf16":{"start":{"line_number":275,"utf16_col":0},"end":{"line_number":311,"utf16_col":0}}},{"name":"Image checking","kind":"section_3","ident_start":12386,"ident_end":12400,"extent_start":12382,"extent_end":13986,"fully_qualified_name":"Image checking","ident_utf16":{"start":{"line_number":311,"utf16_col":4},"end":{"line_number":311,"utf16_col":18}},"extent_utf16":{"start":{"line_number":311,"utf16_col":0},"end":{"line_number":349,"utf16_col":0}}},{"name":"Image resizing","kind":"section_3","ident_start":13990,"ident_end":14004,"extent_start":13986,"extent_end":16287,"fully_qualified_name":"Image resizing","ident_utf16":{"start":{"line_number":349,"utf16_col":4},"end":{"line_number":349,"utf16_col":18}},"extent_utf16":{"start":{"line_number":349,"utf16_col":0},"end":{"line_number":406,"utf16_col":0}}},{"name":"Image effects","kind":"section_3","ident_start":16291,"ident_end":16304,"extent_start":16287,"extent_end":18248,"fully_qualified_name":"Image effects","ident_utf16":{"start":{"line_number":406,"utf16_col":4},"end":{"line_number":406,"utf16_col":17}},"extent_utf16":{"start":{"line_number":406,"utf16_col":0},"end":{"line_number":467,"utf16_col":0}}},{"name":"Image text","kind":"section_3","ident_start":18252,"ident_end":18262,"extent_start":18248,"extent_end":21043,"fully_qualified_name":"Image text","ident_utf16":{"start":{"line_number":467,"utf16_col":4},"end":{"line_number":467,"utf16_col":14}},"extent_utf16":{"start":{"line_number":467,"utf16_col":0},"end":{"line_number":538,"utf16_col":0}}},{"name":"Image transformations","kind":"section_3","ident_start":21047,"ident_end":21068,"extent_start":21043,"extent_end":21979,"fully_qualified_name":"Image transformations","ident_utf16":{"start":{"line_number":538,"utf16_col":4},"end":{"line_number":538,"utf16_col":25}},"extent_utf16":{"start":{"line_number":538,"utf16_col":0},"end":{"line_number":562,"utf16_col":0}}},{"name":"Image borders","kind":"section_3","ident_start":21983,"ident_end":21996,"extent_start":21979,"extent_end":23652,"fully_qualified_name":"Image borders","ident_utf16":{"start":{"line_number":562,"utf16_col":4},"end":{"line_number":562,"utf16_col":17}},"extent_utf16":{"start":{"line_number":562,"utf16_col":0},"end":{"line_number":607,"utf16_col":0}}},{"name":"Image watermark","kind":"section_3","ident_start":23656,"ident_end":23671,"extent_start":23652,"extent_end":24764,"fully_qualified_name":"Image watermark","ident_utf16":{"start":{"line_number":607,"utf16_col":4},"end":{"line_number":607,"utf16_col":19}},"extent_utf16":{"start":{"line_number":607,"utf16_col":0},"end":{"line_number":635,"utf16_col":0}}},{"name":"Image reflections","kind":"section_3","ident_start":24768,"ident_end":24785,"extent_start":24764,"extent_end":25534,"fully_qualified_name":"Image reflections","ident_utf16":{"start":{"line_number":635,"utf16_col":4},"end":{"line_number":635,"utf16_col":21}},"extent_utf16":{"start":{"line_number":635,"utf16_col":0},"end":{"line_number":656,"utf16_col":0}}},{"name":"Values that can be read before calling `process()`","kind":"section_2","ident_start":25537,"ident_end":25587,"extent_start":25534,"extent_end":26324,"fully_qualified_name":"Values that can be read before calling `process()`","ident_utf16":{"start":{"line_number":656,"utf16_col":3},"end":{"line_number":656,"utf16_col":53}},"extent_utf16":{"start":{"line_number":656,"utf16_col":0},"end":{"line_number":676,"utf16_col":0}}},{"name":"Values that can be read after calling `process()`","kind":"section_2","ident_start":26327,"ident_end":26376,"extent_start":26324,"extent_end":26827,"fully_qualified_name":"Values that can be read after calling `process()`","ident_utf16":{"start":{"line_number":676,"utf16_col":3},"end":{"line_number":676,"utf16_col":52}},"extent_utf16":{"start":{"line_number":676,"utf16_col":0},"end":{"line_number":692,"utf16_col":0}}},{"name":"Requirements","kind":"section_2","ident_start":26830,"ident_end":26842,"extent_start":26827,"extent_end":27063,"fully_qualified_name":"Requirements","ident_utf16":{"start":{"line_number":692,"utf16_col":3},"end":{"line_number":692,"utf16_col":15}},"extent_utf16":{"start":{"line_number":692,"utf16_col":0},"end":{"line_number":700,"utf16_col":0}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"csrf_tokens":{"/verot/class.upload.php/branches":{"post":"81AdGYbY80f2kOge_kxSy9gIecr9_PoxgRgf3EfrNiZk1HSnY56kz2MkF8l2Y2w2qY2_gx2S5CY_pOqUGSf6rg"},"/repos/preferences":{"post":"Rr7nxP7l0O-pEPuK9DMGyT2wHs4b_FfezAmfnJcw8bBvc22TxLp9i6HuIQWM5Qxz8t2_AeR76DIr39O0UaYIYA"}}},"title":"class.upload.php/README.md at master ยท verot/class.upload.php"}