Contact us
Language:
  • English
  • Français
  • Español
Currency:
  • AUD $
  • EUR €
  • USD $
 Sign in
shopping_cart Cart (0)

Demo 29 PRESTAWORLD
  •   Clothes
    • Men
    • Women
  •   Accessories
    • Stationery
    • Home Accessories
  • Art
  • Custom Price
search clear
Community Forum
  1. Home
  2. Community Forum
  3. File Upload Works but $_FILES Is Empty After Page Reload

File Upload Works but $_FILES Is Empty After Page Reload

Created by darken pres 30 Jan 2026 1 Replies 0 Likes 1 Views thumb_up thumb_down report
Reply Back to Topics

Hello,
I am implementing a file upload feature in a forum reply form.

Issue details:

  • The file uploads successfully

  • After page reload, the $_FILES array becomes empty

What could be the reason?

  • Missing enctype="multipart/form-data"?

  • Should I use AJAX instead of normal form submit?

  • Could this be a session or token-related issue?

Replies

KP
Hello, If $_FILES is empty after page reload, this is actually expected behavior in many cases.Here are the most common ...
Replied by Kevin Parker on 30 Jan 2026 13:02
0 Likes
0 Views

    Get our latest news and special sales

    You may unsubscribe at any moment. For that purpose, please find our contact info in the legal notice.

    Products

    Products  
    • Prices drop
    • New products
    • Best sellers

    Our company

    Our company  
    • Delivery
    • Legal Notice
    • Terms and conditions of use
    • About us
    • Secure payment
    • Contact us
    • Sitemap
    • Stores

    Your account

    Your account  
    • Order tracking
    • Sign in
    • Create account
    • My alerts
    •  Sales Agent Panel
    Store information keyboard_arrow_down keyboard_arrow_up

    Store information

    Demo 29 PRESTAWORLD
    United States
    Email us:
    My wishlists
    add_circle_outline Create new list
    ((modalTitle))

    ((confirmMessage))

    ((title))
    Sign in

    You need to be logged in to save products in your wishlist.

    ((loginText))

    © 2026 - Ecommerce software by PrestaShop™