Matze Posted May 2 Share Posted May 2 Hi, using a file field with the option to upload exactly one pdf file. So if i choose a new one, will the old file be deleted from server? If not, how can i force this? I am using a file field with the option to upload exactly one PDF file. If I select and upload a new file will the old file be deleted from the server? or, If not, how can I force this? No outdated files that may be indexed (for example by Google) should be accessible anymore. Any solution for this? Thank you! Link to comment Share on other sites More sharing options...
poljpocket Posted May 3 Share Posted May 3 Following the code for InputfieldFile, if you have set it to maxFiles: 1 and replace: true, the old file should be deleted. See around here in the code. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now