Can I ask what your settings are for this field, specifically upload to media and attach to email? Are the files still being attached to the email if you have set the attach to email option?
In previous versions if you set it to attach to email, it would upload to uploads directory and leave the file there. In 1.4.4, if you set upload to media library as an option, it works the same, if you don’t it deletes the file like your describing. This change was made as many people didn’t want files stored on their system, unless they . I agreed because of potential security and disk space issues.
I’m sorry if this change affected you negatively. I hope you understand the intent.
So the only way to not have the files be automatically deleted is to add them to my media library? that is going to get overwhelming fast.
I have the same issue as @fwcwebmaster
When a file is uploaded either single or multiple upload, the path to that file is wrong – there is no file uploaded (no new folder in uploads created).
I think it’s important to point out that this is how it is supposed to work, the older versions had a bug that saved files which were not supposed to be saved. If you want to save files, add them to the media library.
If you want to save the files, but not add them to the media library you have two options:
1) Create your own file upload handler: https://calderawp.com/doc/alternative-file-upload-directory/
2) Remove the actions that delete the file: https://gist.github.com/Shelob9/63642d00f1486d78408d3192448334c6#file-dont-delete-private-files-php
I think the problem is that Advanced File Field not attach media in email if not upload in media folder.
Hello Josh,
Where do we place this piece of code that removes the actions that delete the file?