Home › Forums › ACF PRO › Own custom field type to upload files › Reply To: Own custom field type to upload files
Hello @acf-support,
sorry my english is terrible.
I want to upload a file. But i don’t want an insert in the media library.
My problem isn’t the upload. The file is at the right place and so on.
My problem is the automatic in acf to create after upload this attachment insert in the database.
I use a filter for wp_handle_upload_prefilter
– but after this it starts ever the function acf_upload_files();
. I look for a way to prevent or to stop this. Because this function create the media library insert. I don’t want this insert.
I will upload advertising images. These images has only one size! And i don’t need the other formats.
I can upload, but i can’t the insert in the database and the media libary.
Thanks vor your help!
Greetings
Skrabbel
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.