{if $gBitSystem->isPackageActive('gigaupload')} {include file="bitpackage:gigaupload/js_inc.tpl"} {else} {assign var=onSubmit value="javascript:disableSubmit('submitbutton');"} {assign var=id value=fishid} {/if} {strip}

{tr}Upload Files{/tr}

{form enctype="multipart/form-data" onsubmit=$onSubmit id=$id target=$target action=$action}
{jstabs} {jstab title="Upload Files"} {legend legend="Upload Files"} {formfeedback note=$quotaMessage}

{biticon ipackage="icons" iname="dialog-warning" iexplain=Warning iforce=icon} {tr}The maximum file size you can upload is {$uploadMax} Megabytes{/tr}

{formfeedback error=$errors} {formhelp note="Here you can upload files. You can upload single files, or you can upload archived files (.zip's, .tar's, etc. NOTE: .sitx on Mac OS X generally does not work) Archived uploads will automatically be decompressed, and a gallery will created for every gallery in it. If you have nested folders, the hierarchy will be maintained for you with nested galleries." force=true} {if $gBrowserInfo.platform=='mac'} {formhelp note="Mac Users: The newer .sitx format is not supported currently because the makers of the StuffIt application have not released new versions of their software for servers. Please use DropZip or similar for best results." force=true} {/if} {if $gBitSystem->isPackageActive( 'gigaupload' )} {$gigaPopup} {include file="bitpackage:gigaupload/form_inc.tpl"} {elseif $gBitSystem->isFeatureActive( 'fisheye_extended_upload_slots' )}

{tr}Upload Images{/tr}

{include file="bitpackage:kernel/upload_slot_inc.tpl" hash_key=imagedata} {else}
{formlabel label="Select File(s)"} {forminput} {formhelp note="To upload more than one file, please click on choose repeatedly
(javascript has to be enabled for this to work)."} {/forminput}
{formlabel label="Selected File(s)" for=""} {forminput}
{formhelp note="These files will be uploaded when you hit the upload button below."} {/forminput}
{/if} {/legend} {/jstab} {include file="bitpackage:liberty/edit_services_inc.tpl serviceFile=content_edit_tab_tpl} {include file="bitpackage:liberty/edit_services_inc.tpl serviceFile=content_upload_tab_tpl} {/jstabs} {if $gBitUser->hasPermission( 'p_fisheye_upload_nonimages' )}
{formlabel label="Process Archive(s)" for="process_archive"} {forminput} {formhelp note="If you don't want to have archived files processed and extracted, please uncheck the above box."} {/forminput}
{else} {/if} {if function_exists('exif_read_data')}
{formlabel label="Auto-Rotate Images" for="rotate_image"} {forminput} {formhelp note="If your camera was turned sideways when the image was taken, this will attempt to orient the image correctly."} {/forminput}
{/if}
{if !$gBitUser->hasPermission( 'p_fisheye_create' )} {formfeedback warning="Please make sure you select a gallery to load your images into, otherwise your images will be discarded"} {/if} {formlabel label="Add File(s) to these Galleries"} {forminput} {foreach from=$galleryList key=galId item=gal} mGalleryId == $galId} checked="checked" {else} {section name=gx loop=$gContent->mInfo.parent_galleries} {if ($gContent->mInfo.parent_galleries[gx].gallery_id == $galId)} checked="checked" {/if} {/section} {/if} /> {$gal.title|escape}
{foreachelse}

{tr}No Galleries Found{/tr}.
{tr}The following gallery will automatically be created for you{/tr}: {displayname hash=$gBitUser->mInfo nolink=1}'s Gallery

{/foreach} {/forminput}
{include file="bitpackage:fisheye/resize_image_select.tpl"}
{include file="bitpackage:liberty/edit_services_inc.tpl serviceFile=content_edit_mini_tpl}
{if $gBitSystem->isPackageActive( 'gigaupload' )} {include file="bitpackage:gigaupload/progress_container_inc.tpl"} {/if}
{/form}
{/strip}