marcoliocops
Forum Replies Created
-
Forum: Plugins
In reply to: [Fast Secure Contact Form] Silent Remote POST doesn't send filesThanks for the attachments url, which I am extracting the file directly from.
file_get_contents("../../apps/wordpress/htdocs/wp-content/plugins/si-contact-form/attachments/$pic_name", true);I know its barbaric but I’m looking for a better way to do this.
I haven’t been able to get the file using your code snippet though… Would I place this code in the theme’s functions.php file? isself::$uploaded_filesa variable within this class? I imagine the error is that php cannot find the variable $uploaded_files. Is there something av missed? kindly expound..Interestingly though, the files on the attachments folder are left on the server even if I disable the option Enable to not delete email attachments from the server
Mark
Forum: Plugins
In reply to: [Fast Secure Contact Form] Silent Remote POST doesn't send filesI have tried the do action hook.
=>$valuedisplays all posted data as a string. I receiveFile is attached: pictiure.png
I would like to use
file_get_contents($_FILES["fileToUpload"]["tmp_name"]);to get the file contents and convert to base64.
Question: Can I retrieve file contents in php before its deleted from the server?
II: how come all data posted is in string? I would much rather receive the url of the picture’s location on the server rather than “file is attached…..”Mark