They might show up on the regular file field's list for deletion, though that'd be an oversight if they do. I haven't tested a custom file field since 3.2 as the normal uses for it don't apply anymore. Anyhow you could make a toplist of attachments for it and submit them the same way the regular ones get submitted in the 'edit link' template.
have got things working basicly right but when different things are entered in a text field for example (ie for a remote link) it does not seem to save the updated result.. any ideas?
well there are two field attach and remote i have used the <IF> to get it to decide what one is getting used and display the picture accordingly, now since i could not figure how to delete the custom uploaded file i have also added visible as a option for attach i.e. <IF> visible = yes (some code) <otherwise> nothing <IF>
now remote is a text field, literly just copy and paste the path to a image on a remote server (http://whatever)
now the problem we hare having is that when a new target remote image address is entered.. it does not update it keeps the old one..
Paul, Maybe it would be useful to, when creating a new custom field link, to insert a: <tr> <td class="labelscolumn"><span class="labels">test1attach:</span></td> <td class="optionscolumn"><input type="file" name="test1attach"> </td><td><IF {LINKTEST1ATTACHTITLE}><input type="checkbox" name="test1attachdelete" value="1">Delete?</IF></td> </tr>
Comments on Delete custom attachment
Member
Usergroup: Customer
Joined: Jun 30, 2003
Location: England
Total Topics: 7
Total Comments: 48
i have given up, i carnt figure it! how do you delete attachments from a custom file field?
Member
Usergroup: Customer
Joined: Jun 30, 2003
Location: England
Total Topics: 7
Total Comments: 48
<IF {LINKIMGHIDE} is Yes> seems to work as good as any for now!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
They might show up on the regular file field's list for deletion, though that'd be an oversight if they do. I haven't tested a custom file field since 3.2 as the normal uses for it don't apply anymore. Anyhow you could make a toplist of attachments for it and submit them the same way the regular ones get submitted in the 'edit link' template.
Member
Usergroup: Customer
Joined: Jun 30, 2003
Location: England
Total Topics: 7
Total Comments: 48
have got things working basicly right but when different things are entered in a text field for example (ie for a remote link) it does not seem to save the updated result.. any ideas?
Member
Usergroup: Customer
Joined: Jun 30, 2003
Location: England
Total Topics: 7
Total Comments: 48
any at all.. they wher added via the back end and they did/do seem to work for som elinks.. im at a bit of a loss
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
What do you mean by things being entered in a text field? I don't see what a text field has to do with files.
Member
Usergroup: Customer
Joined: Jun 30, 2003
Location: England
Total Topics: 7
Total Comments: 48
well there are two field attach and remote i have used the <IF> to get it to decide what one is getting used and display the picture accordingly, now since i could not figure how to delete the custom uploaded file i have also added visible as a option for attach i.e. <IF> visible = yes (some code) <otherwise> nothing <IF>
now remote is a text field, literly just copy and paste the path to a image on a remote server (http://whatever)
now the problem we hare having is that when a new target remote image address is entered.. it does not update it keeps the old one..
Member
Usergroup: Customer
Joined: Jun 30, 2003
Location: England
Total Topics: 7
Total Comments: 48
just for some extra wierdness it seems to work for most links but not for one or two.. humm..
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Adding the ability to use <input type="checkbox" name="customattachdelete" value="1"> to delete for 3.25.
Member
Usergroup: Customer
Joined: Jun 30, 2003
Location: England
Total Topics: 7
Total Comments: 48
thanks dude
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Untested, so I hope it works.
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Searching for delete custom attachments I found:
scripts.webmastersite.net/w...nks/wsnmanual/articles/161
And it's working fine.
Paul,
Maybe it would be useful to, when creating a new custom field link, to insert a:
<tr>
<td class="labelscolumn"><span class="labels">test1attach:</span></td>
<td class="optionscolumn"><input type="file" name="test1attach">
</td><td><IF {LINKTEST1ATTACHTITLE}><input type="checkbox" name="test1attachdelete" value="1">Delete?</IF></td>
</tr>
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Yes, will change what it adds.