We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

nGen file field: how edit and deleting in SAEF?

Development and Programming

Gert Timmerman's avatar
Gert Timmerman
33 posts
16 years ago
Gert Timmerman's avatar Gert Timmerman

I have installed the nGen file field and inserted in my SAEF. Uploading a new file works well, but how delete the file and upload a new file?

This is my code:

{if field_id_12}
   /images/uploads/register/{field_id_12}
{/if}
   <input type="file" name="field_id_12">
   <input type="hidden" name="field_id_12[file_name]" />
   <input type="hidden" name="field_id_12[existing]" value="{field_id_12}"  />

The code works well when there isn’t a file yet. But if there is already a file and i want to upload a new file, the old file keep existing.

So, anybody have a good solution for nGen file field VS a edit SAEF

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.