How can I control the prefix of uploaded files


Tutorials - Tutorials

User Rating: / 0
How can I control the prefix of uploaded files

When you upload a file through a form created in RSForm!Pro, the component will automatically add a unique prefix to the file in order to help avoid duplicates. You can control this feature from the File Prefix property of the Upload field. There are several ways to use this field:

  • leave the property blank; this will use the default RSForm!Pro prefix
  • add your own text that will be used as a prefix

You can also add custom scripts to this field, this will offer you more freedom when setting the prefix of the files(for example using information that was submitted in the form or disabling the prefix). In order to stop the component from adding a prefix you can use the following script:

  //<code> return ''; //</code>  

In order to use a value submitted in the form as the prefix(for example the submitting user's name) you can use:

  //<code> return $_POST['form']['field-name'].'_'; //</code>  

About Us

Royal Developer Top three Web Designing and Web Development Company in Dehradun, Uttarakhand, India. Royal Developer Best SEO Company in Dehradun takes pride in its philosophy of 'Employee First' which empowers to create a real value for the customers. Royal Developer can offer Best and cheap Website Development Software Development & SEO Services. We are the Best service Provider of SEO, SEM, SMO Services Company in Uttarakhand. Web Designing Course in Dehradun, Web Designing Classes in Dehradun, Web Design Training Institute in Dehradun, Web designing institute in dehradun, Best institute for web designing in dehradun, Web development training in dehradun, Web development course in dehradun, Web Designing Training in Dehradun.


- Contact Information - 

Add : RDIT Services Pvt Ltd, 3rd Floor, RGM Plaza, Above Chandu Canteen,
          23 Chakrata Road, Dehradun - 248001, Uttarakhand, India

Email : 


 : +91 8171200108, +91 8979462451,
                                  +91 7895753921

Quick Enquiry Form

Enter your full name

Enter your valid email address

Enter your correct mobile number

Invalid Input

Your Message
Invalid Input

Enter Code
Enter Code
  RefreshInvalid Input


You are here: Home Tutorials How can I control the prefix of uploaded files