• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Class File - method getRandomName

#1
A quick suggestion to add flexibility to the getRandomName function.

Add 2 parameters:
  1. useTime - Boolean to indicate if the time value should be included as part of the generated file name - default TRUE
  2. stringLength - Integer to set the length of the random bytes - default 10
The function, in its current form is generating a filename of 31 characters plus however long the extention is.  These extremely long filenames are resulting in display issues when having to display the file name.

By allowing the developer to set their own parameter as to how the random file name should be generated will imho make the function even better.
Dirk B.
No SEO spam - see forum guidelines
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.