Home › Forums › ACF PRO › Own custom field type to upload files › Reply To: Own custom field type to upload files
Hi @skrabbel
If you overwrite the attachment_id with the URL in a file field type, it won’t show anything on the backend because the file field type can only read attachment ID from the database, not the URL. If you want to do it, I suggest you add a new URL field type and save the image URL in that field instead.
I hope this makes sense 🙂
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.