The following line of code is causing the Stream Wrapper to keep the same file name if I upload multiple files in one request using the file_save_data() function.

if (!isset($storage_core_bridge_filename))
$storage_core_bridge_filename = $filename;

I commented out the "if (!isset($storage_core_bridge_filename))" so if I am uploading multiple files in one request it will update the filename.

Comments

jbrown’s picture

Status: Active » Closed (fixed)

I think this is fixed.