Media::get_file_id( awsmug\Torro_Forms\DB_Objects\Elements\Element $element )

Gets the ID under which to store the upload in $_FILES.

Description

See also

Parameters

$element

(awsmug\Torro_Forms\DB_Objects\Elements\Element) (Required) Element for which to get the file ID.

Return

(string) File ID.

Source

File: src/db-objects/elements/element-types/base/media.php

	protected function get_file_id( $element ) {
		return $this->manager->get_prefix() . 'media_upload_' . $element->id . '__main';
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.