heldercervantes Posted June 27, 2023 Share Posted June 27, 2023 Hi guys. I'm making an import script for a weird site's content. I got to the point where I can successfully clean everything up and shepherd most data from the exported mess to their new home in page fields. I'm also finding file links and image urls that I want to upload to a new files field. I don't have them locally, so basically I need to start from an array of URLs and somehow upload them to the page's files field. But how? I just can't wrap my head around uploading stuff. It's always a pain Link to comment Share on other sites More sharing options...
Jan Romero Posted June 27, 2023 Share Posted June 27, 2023 Does this not work equivalently for file fields? 1 1 Link to comment Share on other sites More sharing options...
elabx Posted June 28, 2023 Share Posted June 28, 2023 4 hours ago, Jan Romero said: Does this not work equivalently for file fields? This is the way! 2 Link to comment Share on other sites More sharing options...
heldercervantes Posted June 28, 2023 Author Share Posted June 28, 2023 15 hours ago, Jan Romero said: Does this not work equivalently for file fields? Of course it's that easy ?♂️ How did I not find that discussion? Who knows. Thanks Jan ? 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