I have created a new project in PlatformIO. I picked the board “Wemos D1 Mini Lite”, which has 1MB of flash. When compiling the code, I see that it has been picked correctly:
CONFIGURATION: Redirecting...
PLATFORM: Espressif 8266 > WeMos D1 mini Lite
HARDWARE: ESP8266 80MHz 80KB RAM (1MB Flash)
However, when trying to flash this image to the esp8266 via HTTPUpdater, it keeps being identified as a 4MB target bin file: