• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Files Uploading Limitation

Files Uploading Limitation 12 years 2 months ago #21423

  • wfolch
  • wfolch's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi,

I'm trying to figure out how to solve a problem. I'm developping a website running a contest. Users (already registered) are asked to upload a file to participate. Each registered user can only upload one file.

The question is: How to disallow the file upload feature (component) for a registered user that has already sent a file?

Thanks!
The administrator has disabled public write access.

Files Uploading Limitation 12 years 2 months ago #21444

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello,

There are several ways to achieve this:

1'st way:

- you can use a "unique filed" validation rule for your email field, thus the form can only be submitted once using that email address. More information about this validation rules can be found here:

www.rsjoomla.com/support/documentation/v...e/57-components.html

- make the file upload component of your form required, so that users that submit the form are forced to upload a file.

2'nd way:

- would be to use a script in the "Scripts called on form process" that will check if the uploaded file exists in the database or not. More information about the PHP scripting areas can be found here:

www.rsjoomla.com/support/documentation/v...602-php-scripts.html

3'rd way:

- you can try using the $invalid method as explained in the article above
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!