Custom field for attachments

  • Robert Gastaud
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 5 months ago #147871 by Robert Gastaud
Custom field for attachments was created by Robert Gastaud
Hi Tuan,

Is it a way to delete orphans attached files in media folder?
In a form, the registrant needs to add a proof ot his identity (copy of his passport, for example), so we added a custom field to upload a file. But the file is saved on the server before the form is validated, and if the visitor quit without validating the form, the attached file remains on the server, and it's not really secur.
So I would like to select these files and delete them.
Need I a SQL query to do that?

Thanks for your help!
Regards,
Robert

Please Log in or Create an account to join the conversation.

  • Robert Gastaud
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 5 months ago #147872 by Robert Gastaud
Replied by Robert Gastaud on topic Custom field for attachments
Hi,

Sorry, I don't find where to set the files permissions. In the documentation I read:
"File : Allow subscribers to upload file while subscribing for a subscription plan. The file types which subscribers can upload is controlled in Allowed File Types config option."

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #147880 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom field for attachments
Hello Robert

Something is not easy for you to write. I will see if I can come up with a hidden tool to allow doing that. Will update you if I have it implemented

Tuan

Please Log in or Create an account to join the conversation.

  • Robert Gastaud
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 5 months ago #147882 by Robert Gastaud
Replied by Robert Gastaud on topic Custom field for attachments
Thanks Tuan!

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc