I’m trying to create a node programatically and use the Filefield Module to upload a file from a remote url.
The node is being created properly but I can’t get the remote url upload working.
Anyone have any experience with this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
After speaking with the maintainer of the module the code can actually be copied from the module. It’s around 30 lines that deals with the remote url. Once you have that then you can just pass the resulting file into an array and let filefield deal with the rest.