preg_replace

Started by Tender_user_21765630 replies6 views
Tender_user_2176563Original post
#1

Archived from the Transloadit support forum. Originally posted on October 4, 2012; details may be outdated, see our docs for current behavior. Original thread

Is it possible to have the robots run something like the below for file uploads?

str_replace('"','_',str_replace("#","_",preg_replace('/\.(?=.*\.)/', '', $uploadedFile)));

The above is just for example purposes.

*The file that gets downloaded to my SFTP has everything removed but I can not find the value of the new filename in the JSON response.