Its not exactly clear on where you are going, and why you are going there? If you want to place the file.pdf at the location www.mysite.com/page-name/ go for it. Use your File Transfer Protocol (FTP) tool to create that subdirectory on your server, dump your file there, then refer to it via the proper url address.
If you want to override the wordpress tools that pushes media uploads at the uploads/year/month directory format, you will have to override wordpress core, not something for the faint of heart. I would assume you are very comfortable with php, and know your way around wordpress core functions in order to do that.
Is this a search engine optimization (SEO) issue? What’s driving the desire for a change?
Related Posts:
- Extend WP Customizer to make multiple image selection possible
- limit amount of photos uploaded per cpt post
- Metabox with multiple fields added by user and upload box
- Select multiple images from custom field
- Image upload and path to custom field
- Upload image to wordpress
- Multiple image uploader under editor?
- How can I add an image upload field directly to a custom write panel?
- Remove Dimension from wp_get_attachment_image
- Change wp_get_attachment_image attributes (src and srcset) on specific custom field
- How do I make a custom field choose an image?
- Using media-upload.php to upload mp3 via custom fields
- Saving Custom Field in Attachment Window in WordPress 3.5
- Add multiple images to a page sidebar
- Display thumbnail from custom field
- Add custom field to image editor
- Display info from custom fields in all images’ HTML
- WordPress custom upload field error
- automatically set “Featured Image” the same as the og:i that is set in a custom field
- copy attachments to another post type and change attachment url
- Metabox image upload and custom field
- Custom image sizes for custom field media uploads
- wp_handle_upload error “Specified file failed upload test” but still creates attachment?
- Add WYSIWYG to Image Description field
- Insert attachment ID in custom field from media uploader
- Get Meta from Custom Field of Image URL
- Add url from Custom Field as ‘Featured Image’. Code not working
- How to save media files under custom folder without changing wp-config.php or changing media settings
- How can I store a file in the database in the same way WordPress and ACF do?
- How to display multiple images in custom field
- Get image post ID in media upload
- How to add image attachment to post from a single meta key (Woocommerce)
- Exclude images uploaded via meta boxes from WordPress gallery
- How do i save and retrieve custom attachment meta?
- How to add the image URL from an external RSS feed and insert into a custom field?
- Create custom fields as image uploads [duplicate]
- Is there a simpler version of WP Media?
- Add new image block, set default class name and update it using Javascript
- Better way to save image in custom field
- Client PDF Upload (Catalogue) – Automatically update link to PDF
- How do I add an image upload, custom field to a WooCommerce product?
- How to add upload video option in wordpress for user?
- frontend image post uploader
- Uploading PDF using Media Uploader
- For homepage images (for small business website), is it better to use custom fields or post_thumbnail?
- Redirect to another page using contact form 7? [closed]
- Displaying page image in the footer automatically
- Get image url using image id
- Show image if author meta (profile fields) exists outside loop
- WordPress Media Uploader custom Javascript not working
- How to use media upload on metabox post page without breaking TinyMCE?
- Convert attachment ID into url?
- Front-End User Profile
- Custom field as featured image caption
- Display a different image for each page with editor
- How to get custom image field of specific post id
- How to delete file uploaded by Plupload
- Problem uploading different files as custom fields with front end post form
- Selectively hiding or allowing thumbnails of featured images on front page
- wp_get_attachment_image_src() with advanced custom fields returning empty
- Unable to select image with custom field
- Users uploaded image and matching an id or taxonomy
- How do I upload file through custom field, save it to database and get it
- Adding Facebook’s image and meta description retrieval capabilities to a WordPress post
- Can you generate a featured image from two images from custom fields?
- Show image depending on the number in the custom fields
- Multi Photo Upload with Caption on Front End for Custom Post Type
- want to add video upload option for front end user
- How to delete attachments associated with custom field type when post property changes? [closed]
- Use a different catalog image than the featured image
- How to add custom fields to images for image source text and URL
- display custom media folders to wordpress media popup
- Get first URL from custom field, download and set as featured image on post publish
- Custom Meta Boxes and Fields for WordPress: Change directory upload based on user-edit page
- How can I create more “create attachment” custom field – any idea?
- Analyze uploaded images to get colour values
- Adding thumbnails for non-image attachments
- Allow authors to create article image
- Undefined Variable (Displaying image via custom field)
- unlink() doesn’t delete the uploaded file
- Get single image from custom fields made with WCK custom fields creator
- Add image custom attribute [closed]
- How to mark a image attachment as background image?
- Save Custom Meta Value on Media Upload
- Crop custom image size vs actual size
- Rename image uploads replacing “width” and “height” in filename with “medium”, “large”, “small”
- How to set default metaboxes on user creation?
- Add input field to ‘Pages > Edit Page’ through functions.php
- I need a Simple image uploader with a simple screen. WP default has too many options.
- Upcoming Event: How do I sort database by custom date field, but ignore past dates?
- Order query by meta_value with multiple custom fields
- Generating different dimension images while uploading image file from custom plugin page
- Display only past events on that page using Visual Composer Grid Bulider
- Hide custom fields when empty
- How add multiple wp_editor_box to new post
- How To Save Data From Remote APIs To ACF?
- comments_where Hook
- Troubles with code for upload a image
- Load code for custom fields only on admin pages?
- Generate and upload screenshot as featured image for user-submitted post