Retrieve actual URL for ‘file upload’ field files?
-
Hello,
Thanks for your work on this plugin. I am trying to set up a system to export ‘Job Candidate’ user data as a CSV file to send to local companies looking to hire.
I’ve got everything else working, but I am struggling to retrieve the actual URL of the user ‘resume’ file upload field, to add resume links to the CSV export.
Checking the database user meta info, all I see is the ‘temp’ url and ‘temp’ filename, which do not link to the final uploaded file. I wanted to use the ‘get_download_link’ method from includes/core/class-files.php but that download URL is formatted using a nonce, which won’t work in a CSV file that has been downloaded and shared.
Is there a hidden method I am missing? Maybe I could call ‘get_download_link’, and then immediately load that URL via ajax, and save that returned URL? Any hints or guidance would be much appreciated. Thanks again!
- The topic ‘Retrieve actual URL for ‘file upload’ field files?’ is closed to new replies.