Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How to replace a file exist when the file is send to ftp? (when i send two time test.txt I 'v got test.txt and test_0.txts
And wich value I should change to made selectore re-enable to send. I mean, when selector has been send it's not send anymore. How to change it?
I had made class & container in UI interface, and an selector in custom php module.
Comments
Comment #1
Musa.thomasOk thanks for no answer, I make a bad patch wich replace the line 300 in ftp.inc
to
But it will be better if we can set this in $option of storageAdd() methode and verify if it can't replace file, it make a uniqueFilename.
Comment #2
jbrown CreditAttribution: jbrown commentedIt might be appropriate for uniqueFilename() to not check the service, but it must check the database, other wise the db could end up having an incorrect record of the container.
Comment #3
Musa.thomasYes I must to change primary key on storage_instance table, with the primay on 3 fields. But all is okay if I do it
Comment #4
jbrown CreditAttribution: jbrown commentedDoes the Storage Audit module complain?
Comment #4.0
jbrown CreditAttribution: jbrown commenteds
Comment #5
Perignon CreditAttribution: Perignon commentedMarking fix. Feel free to reopen