• ayron

    (@ayron)


    Hi, I think the plugin is fantastic. It’s required for all my projects. I have a new project, which is where the plugin would be best availed, the user fills out a form through the website frontend and attaches a photo. In this case, the plugin does not work, and the image is kept in the default wordpress directory.
    I would like to upload these images to the amazon s3 bucket that has a lower latency. Can you help me?
    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Contributor ianmjones

    (@ianmjones)

    WP Offload S3 uploads to S3 on the back of the wp_update_attachment_metadata filter that is fired by wp_update_attachment_metadata.

    If you check out the last block of code in \media_handle_upload() in wp-admin/includes/media.php you’ll see this…

    	// Save the data
    	$id = wp_insert_attachment( $attachment, $file, $post_id, true );
    	if ( !is_wp_error($id) ) {
    		wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );
    	}
Viewing 1 replies (of 1 total)
  • The topic ‘FrontEnd’ is closed to new replies.