stanchat
Posts: 7
|
| Posted: 11/13/2004, 9:26 AM |
|
I do not want users to be able to delete files once they are uploaded. I looked but I do not see a property that disables the delete checkbox. I do not want the average user deleting files but instead I want to create a separate secure page that will allow someone with the proper security to delete files.
|
 |
 |
peterr
Posts: 5971
|
| Posted: 11/13/2004, 12:44 PM |
|
FileUpload component doesn't have a checkbox, or delete option, or anything for deleting files. How did you create it?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
stanchat
Posts: 7
|
| Posted: 11/13/2004, 1:10 PM |
|
This is right from your very own documentation. It does have a delete option!!!!!!!
http://docs.codecharge.com/studio/html/Components/Objec...erview.html?toc
Here is a jpeg from your docs
http://docs.codecharge.com/studio/html/Components/Objec...ad/image010.jpg
Clearly states "Delete" to me.
You guys are starting to scare me with answers like this.
|
 |
 |
peterr
Posts: 5971
|
| Posted: 11/13/2004, 1:56 PM |
|
Oops. Sorry about this. I usually handle FileUploads only in insert mode of the record form, so I never see that checkbox.
Well, you can:
a) delete that checkbox from your page, including the "delete" word
b) do not allow record updates, just inserts, unless you want the users to update some other fields in the record but not the file.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
stanchat
Posts: 7
|
| Posted: 11/13/2004, 2:07 PM |
|
Thanks.
I will physically delete the checkbox and delete text label from my page since users must update other fields on the record.
|
 |
 |
stanchat
Posts: 7
|
| Posted: 11/13/2004, 2:24 PM |
|
Physically deleting that checkbox causes major problems. That delete checkbox is embedded in the classes.asp fileIf IsUploaded And Not Required And Not (DeleteControlBlock Is Nothing) Then
If IsEmpty(ExternalDeleteControlName) Then
DeleteControlBlock.Variable("DeleteControl") = DeleteControlName
Else
DeleteControlBlock.Variable("DeleteControl") = ExternalDeleteControlName
End If
DeleteControlBlock.Parse ccsParseOverwrite
UploadBlock.Visible = Required
End If
deleting causes too many problems
|
 |
 |
peterr
Posts: 5971
|
| Posted: 11/13/2004, 2:27 PM |
|
OK, please check that you still have this code in the HTML after deleting the checkbox: <!-- BEGIN DeleteControl --><!-- END DeleteControl -->
If it's not there, please add it after:<!-- END Upload -->
So the full FileUpload section in HTML should look like the following:
<!-- BEGIN FileUpload FileUpload1 --><input type="hidden" value="{State}" name="{ControlName}">
<!-- BEGIN Info --> {FileName} {FileSize} bytes. <!-- END Info -->
<!-- BEGIN Upload --><input class="CaravanInput" type="file" name="{FileControl}"><!-- END Upload -->
<!-- BEGIN DeleteControl --><!-- END DeleteControl --><!-- END FileUpload FileUpload1 -->
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
stanchat
Posts: 7
|
| Posted: 11/13/2004, 3:01 PM |
|
Yes, that does work. I had deleted the comments tag.
Thanks.
|
 |
 |
Tuong Do
|
| Posted: 11/14/2004, 3:23 PM |
|
Hi Stanchat.
The best way to handle this is to leave the delete check there and disable
the delete check box by using the editable grid security feature.
By doing that you can control which group of users can delete the upload
file
For example Admin can delete but not the normal users group
Or only the person that did the upload can delete the file.
"stanchat" <stanchat@forum.codecharge> wrote in message
news:6419643b138c00@news.codecharge.com...
> I do not want users to be able to delete files once they are uploaded. I
> looked but I do not see a property that disables the delete checkbox. I
> do not
> want the average user deleting files but instead I want to create a
> separate
> secure page that will allow someone with the proper security to delete
> files.
>
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |