06. februar 2008 - 13:59
Der er
2 kommentarer og 1 løsning
Hjælp til at ændre timeout på uploadscript
Hej jeg har et script som ser ud som herunder. Scriptet virker fint, bortset fra hvis man forsøger at uploade alt for store filer. Så får man en tilbagmelding som siger "picture not specified". Hvordan ændrer jeg så det er tilladt at uploade store filer..???
Annonceindlæg fra HP
06. februar 2008 - 14:00
#2
<h3>Tilføj billede til kunstværket</h3> {foreach from=$field_errors item=error key=field_caption} {if $error eq 'FILE_NOT_SPECIFIED'} <p class="error">'{$field_caption}' file not specified</p> {elseif $error eq 'NOT_SUPPORTED_IMAGE_FORMAT'} <p class="error">'{$field_caption}' Dette er ikke et understøttet billedeformat</p> {elseif $error eq 'PICTURES_LIMIT_EXCEEDED'} <p class="error">'{$field_caption}' limit exceeded</p> {/if} {/foreach} {if $errors != ''} {foreach from=$errors item=error_message key=error} {if $error eq 'WRONG_PARAMETERS_SPECIFIED'} <p class="error">Wrong parameters are specified</p> {elseif $error eq 'PARAMETERS_MISSED'} <p class="error">The system cannot proceed as some key parameters are missed</p> {elseif $error eq 'NOT_OWNER'} <p class="error">You are not owner of this listing</p> {/if} {/foreach} {else} <p><a href="{$GLOBALS.site_url}/system/classifieds/manage_listing/?listing_id={$listing.id}">Gå til <b>"håndter kunstværk"</b></a></p> {if $listing.number_of_picture < $listing.package.number_of_picture_allowed} <p style="font-weight:bold">Tilføj billede</p><i>Bemærk venligst at hvis opløsningen på dit billede er for stor kan dette ikke uploades</i> <form method="post" action="" enctype="multipart/form-data"> <input type="hidden" name="action" value="add" /> <input type="hidden" name="listing_id" value="{$listing.id}" /> <table> <tr> </tr> <tr> <td>Billede</td> <td><font color="red">*</font></td> <td><input type="file" name="picture" /></td> </tr> <tr> <td colspan="2" align="right"> <input type="submit" value="Tilføj" class="button" /> </td> </tr> </table> </form> {else} {/if} <br /> <table cellpadding="5"><tr> <td></td> <td></td> <td colspan="4"></td> </tr> {foreach from=$pictures item=picture name=pictures_block} <tr> <td><img src="{$picture.thumbnail_url}" alt="" /></td> <td>{$picture.caption}</td> <td></td> <td><a href="?listing_id={$listing.id}&action=delete&picture_id={$picture.id}" onclick="return confirm('Er du sikker på, at du vil slette dette billede ?')"><img src="{image}b_drop.gif" border="0" alt="" /> Slet billede</a></td> <td> {if $smarty.foreach.pictures_block.iteration < $smarty.foreach.pictures_block.total} <a href="?listing_id={$listing.id}&action=move_down&picture_id={$picture.id}"><img src="{image}b_down_arrow.gif" border="0" alt="" /></a> {/if} </td> <td> {if $smarty.foreach.pictures_block.iteration > 1} <a href="?listing_id={$listing.id}&action=move_up&picture_id={$picture.id}"><img src="{image}b_up_arrow.gif" border="0" alt="" /></a> {/if} </td> </tr> {/foreach} </table> {/if}