hide file name and size

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
barka
User
Posts: 114

Re: hide file name and size

Post by barka »

i have table news with fields:
photo (for upload photo) and doc (for upload document)

how to hide file name and file size in add and edit page?


mobhar
User
Posts: 11660

Post by mobhar »

Simply use "Row_Rendered" server event, for example:

if (CurrentPageID() == "add" || CurrentPageID() == "edit") {
$this->photo->Visible = FALSE;
$this->doc->Visible = FALSE;
}


barka
User
Posts: 114

Post by barka »

Thank you for reply.
For example. I have file named pic1.jpg and has size 300 kb.
When i press "choose" button for choosing file, file name (pic1.jpg) and file size (300 kb) show in add and edit page.
How to hide file name and file size before pressing submit button.


mobhar
User
Posts: 11660

Post by mobhar »

It is not supported by using Server Events nor Client Scripts. In addition, the file name and file size of the uploaded file should always be shown (and should not be hidden/removed), so that user know which files they uploaded, and the file size of the uploaded files itself.


barka
User
Posts: 114

Post by barka »

thank for advice


Post Reply