Created
July 13, 2014 23:34
-
-
Save sombrafam/c3bea65068e4c1b3b039 to your computer and use it in GitHub Desktop.
Upload PNG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FUNCTION AFTER UPLOAD: | |
attachment_ids=Array ( [0] => 121 ) | |
result=1 | |
post_id=32Array ( [post_ID] => 32 [post_title] => Erlon Cruz [ra] => 123456 [action] => upload_ugc [form_layout] => image [fu_nonce] => d71734168a [_wp_http_referer] => /?p=32 [ff] => f3c01b8520a3bdaf1f0141dd2b20f488 [form_post_id] => 32 ) Post name = Trabalho 1 - (ICA) | |
Upload dir | |
Array ( [path] => /var/www/wordpress/wp-content/uploads/2014/07 [url] => http://www.erloncruz.com.br/wp-content/uploads/2014/07 [subdir] => /2014/07 [basedir] => /var/www/wordpress/wp-content/uploads [baseurl] => http://www.erloncruz.com.br/wp-content/uploads [error] => ) Getting attacments to atta 121 | |
Array ( [width] => 940 [height] => 168 [file] => 2014/07/banner1.png [sizes] => Array ( [thumbnail] => Array ( [file] => banner1-150x150.png [width] => 150 [height] => 150 [mime-type] => image/png ) [medium] => Array ( [file] => banner1-300x53.png [width] => 300 [height] => 53 [mime-type] => image/png ) ) [image_meta] => Array ( [aperture] => 0 [credit] => [camera] => [caption] => [created_timestamp] => 0 [copyright] => [focal_length] => 0 [iso] => 0 [shutter_speed] => 0 [title] => ) ) | |
Copying '/var/www/wordpress/wp-content/uploads/2014/07/banner1.png' to '/exports/data/32/123456.png' | |
Notice: Array to string conversion in /var/www/wordpress/wp-content/plugins/frontend-uploader/lib/php/functions.php on line 312 | |
FUNCTION UPLOAD RESULT: | |
layout=image | |
result=ArrayArray ( [post_ID] => 32 [post_title] => Erlon Cruz [ra] => 123456 [action] => upload_ugc [form_layout] => image [fu_nonce] => d71734168a [_wp_http_referer] => /?p=32 [ff] => f3c01b8520a3bdaf1f0141dd2b20f488 [form_post_id] => 32 ) | |
Warning: Cannot modify header information - headers already sent in /var/www/wordpress/wp-includes/pluggable.php on line 1121 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment