Home › Forums › ACF PRO › Own custom field type to upload files › Reply To: Own custom field type to upload files
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!
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!
ACF wouldn’t be so widely used in WordPress if it didn’t have some pretty amazing capabilities. In this article, we look at a few of the features we’ll discuss during “7 things you didn’t know you could do with ACF” at #WPEDecode later this month. https://t.co/5lnsTxp81j pic.twitter.com/Yf0ThPG1QG— Advanced Custom Fields (@wp_acf) March 16, 2023
© 2023 Advanced Custom Fields.