Example #1
0
	<div>
		<form name="uploadform" action="imageloader.php" method="post" enctype="multipart/form-data" onsubmit="return verifyUploadForm(this)">
			<fieldset style="width:90%;">
				<legend style="font-weight:bold;font-size:120%;">Image Upload Form</legend>
				<div style="margin:10px;">
					This tool is designed to aid collection managers in batch importing image files 
					that are defined within a comma delimited text file (CSV). The only two required fields are 
					the image url. If scientific name is null, script will attempt to extract taxon name from image file name. 
					The image urls must represent the full path to the image, or consist of the file names with base path 
					defined within the ingestion form.  
					Other optional fields include: photographer, caption, locality, sourceUrl, anatomy, 
					notes, collection identifier, owner, copyright, sortSequence.   
					Internal fields can include photographerUid, occid, or tid. 
				</div>
				<input type="hidden" name="ulfilename" value="<?php 
echo $importManager->getUploadFileName();
?>
" />
				<?php 
if (!$importManager->getUploadFileName()) {
    ?>
					<input type='hidden' name='MAX_FILE_SIZE' value='10000000' />
					<div>
						<div>
							<b>Upload File:</b>
							<div style="margin:10px;">
								<input name="uploadfile" type="file" size="40" />
							</div>
						</div>
						<div style="margin:10px;">
							<input type="submit" name="action" value="Analyze Input File" />