Announcement

Collapse
No announcement yet.

Automatically renaming of uploaded files

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Automatically renaming of uploaded files

    Other RAD tools have the option to automatically rename uploaded files to a random string. I need this in scriptcase also. Where is this at on the road map?

  • #2
    This option is not available yet.
    Alternatively, you can write a piece of code yourself and rename the file.
    For example, I save each upload file to a server in a specific folder. Before that, I rename it and add a upload date to it.
    Example code:

    // Rename uploaded file and save to country folder on server
    $fileDirLocation = dirname($file);
    $fileContent = file_get_contents($file);
    $date = date('Y_m_d_h_i_s');
    file_put_contents($fileDirLocation . "/$l_country_name/name_of_file_{country}_{location}_".$date. ".log", $fileContent);

    Comment

    Working...
    X