Welcome Guest, Not a member yet? Register   Sign In
Class File - method getRandomName

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.
Abatrans Software
No SEO spam - see forum guidelines

Theme © iAndrew 2016 - Forum software by © MyBB