No, at the point where the wordpress functions are being invoked it is too late to worry about the upload time as the file was already uploaded.
If you want to make the file smaller before it is uploaded you will have ti write your own code to do it in JS.
Related Posts:
- How to manage attachment relationships for specific posts in WP 3.5+
- How to trigger a refresh in the media modal
- How can I bulk delete media and attachments using WP-CLI?
- Expanding new Media Uploader in WordPress 3.5
- Uploading Multiple Attachments From Front-End With A Description
- Get all posts (of any post type) an attachment is used in
- How to single click to download image in single post
- Unattaching unlinked images
- Delete attachments from Front end
- Get attachments (get_posts) and WP 3.5 new uploader
- How to count media attachments?
- How to make a customized “Create Gallery” tab in the ‘Add Media’ window?
- How to retrieve alt attribute for an attachment (uploaded image)?
- Get the path of the first attached media (single.php)
- Show attached media image if no thumbnail image detected
- media ‘path’ issue / concern when bringing files live
- Media library quick/inline edit
- Massive photogallery import
- the_time() returning wrong date/time (way in the future)
- Gutenberg Block: Image resolution
- Media Library Mess After FTP … /uploads
- wp_delete_attachment doesn’t delete image files / doesn’t work
- Setting an image as post header (not featured image)
- Using the GetMediaLibrary() method in python-wordpress-xmlrpc.media, how to iterate over the result?
- Remove attached media
- Can I add a Category Metabox to attachment?
- Get all post attachments except featured image
- Stop WordPress from reserving slugs for media items?
- Changing attachment urls?
- Add custom class to attachment in media library grid mode
- How can I UN-attach media from a post?
- Is it possible to query specific WordPress Attachment files (.ppt & .pdf) and output them in a list?
- Password protect some uploaded files, so only logged-in users can view them
- How to get attachments for a specific post type?
- How to add media from front-end to an existing post?
- Make individual attachments private?
- Change the Permalink for wordpress attachment
- Get the attachment URL on single.php
- How to get list of paths (not urls) for an image
- Insert custom ID into wp_get_attachment_link
- How to add attachment without uploading?
- Reorder “menu order” of attachments to another predefined order
- Change code to display image attachment page
- Add image attachment to post via coding?
- How To Grab All Type Of Attachments, But Images?
- Removing width and height attributes from wp-get-attachment
- Change filename during upload
- Get post attachment images dimension and use in embed code
- use wp_get_attachment_image() to show attachments
- List Post Attachments – Remove Image Thumbnails
- Link to full size image or attachment page in photo theme
- How do i add LIGHTBOX to Attachments?
- How to specify width and height in the_content for image attachments
- Post edit – Media Library – Only get images from current post
- delete image attachments of a custom post type except featured image
- Import Attachments – not attaching to post_parent
- Media is not attached after import
- How to redirect ‘file url’ to ‘post url’ i.e. in attachment.php
- Pull images from the gallery
- hook wp_generate_attachment_metadata does not read all the attachments
- Is there a move_attachment_file() function in wordpress?
- What is the way to add additional fields to attachments in 3.5+?
- Auto create file and send it via wp_mail()
- how to get random media id from media gallery
- Post Gallery list attachments except the one used as post thumbnail
- Echo Permalink in Attachment outside of loop?
- How can I display a link to a post’s (Word doc or pdf) attachment?
- GUID field in wp_posts – relevance for attachments?
- Is there a function for getting the post/page that an attachment is related to?
- Prevent image from being accessible via url as a post?
- Upload multiple image with media_handle_upload with multiple file field [duplicate]
- get_post orderby not working in plugin
- Delete child post and attachment links to parent post
- Remove attachment from database
- Display Audio Attachment URL
- Display a post attachment depending on the caption
- changing the default picture size link url
- Theming media inserts
- File Attachment display title in template
- Get an image from the media library. Struggling with the code?
- Do custom post type (CPT) attachments/media store the parent post ID?
- Programmatically Altering Gallery Link and image size?
- Append Media/Attachment IDs to Gallery Shortcode HTML Output
- File was uploaded, but it is not shown on media section of the dashboard
- wp_get_attachment_metadata is empty
- Restricted Attachments/Change Attachment Upload Location
- Hide Image Container if No Image Attachments
- How to link images to attachment.php [duplicate]
- Check whether attachment ID is associated with more than one post?
- How to remove attachments from main query via pre_get_posts?
- Post attachments doesn’t show after manual db import
- Possible to “Attach” images to multiple posts without uploading twice from Add media Section?
- ID of images from gallery
- WordPress Attachments vs Post Meta
- open image after clicking on single.php with different stylesheet in wordpress
- How do I get link URL (not file URL or attachment URL) of an attached image [duplicate]
- Attachment page custom title?
- One audio attachment, with two possible interchangeable extensions
- Attachement Meta DATA
- Close featured image modal windows with JS