Function __global->post_param_image

Definitions

sources/images2.php

  • An image has been passed through by POST, either as a file (a new upload), a URL, a reference to an existing theme image, or as a filedump reference.Used with form_input_upload_multi_source.Get the image URL from the POST data.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: string

Parameters

Name Type Default Set Range Description
$name ID_TEXT image N/A N/A Form field prefix (input type suffixes will be added automatically)
$upload_to ?PATH Null N/A N/A Where to upload to (null: the correct place for $theme_image_type)
$theme_image_type ?ID_TEXT Null N/A N/A The directory of theme images to store under (null: do not support theme images)
$required boolean True N/A N/A Whether an image is required
$is_edit boolean False N/A N/A Whether this is an edit operation
$filename ?string Null N/A N/A Pass the filename back by reference (null: do not pass)
$thumb_url ?string Null N/A N/A Pass the thumbnail back by reference (null: do not pass & do not collect a thumbnail)

Return

  • The URL (either to an independent upload, or the theme image, or a filedump URL) (null: leave alone, when doing an edit operation)
  • Type: ?URLPATH
  • Set: N/A
  • Range: N/A