Recently, while using DeepSeek, I ran into a rather strange issue. After some troubleshooting, I finally found the cause. I am documenting my investigation and solution here in hopes of helping others who encounter the same situation.
Symptom
I saved an image from WeChat (Linux version) and intended to upload it to the DeepSeek chat box. Initially, out of habit, I tried pasting it directly using Ctrl+V, but DeepSeek returned the following prompt:
The uploaded file contains an unsupported file format. Please convert the file format and try again. Supported formats include PDF, DOC, XLSX, PPT, images, text, code, etc.
It was clearly a JPEG image, so how could the format be unsupported? I checked the image properties and confirmed it was a standard JPEG (as shown in Figure 2).

As shown in Figure 2: The image properties display “JPEG image (image/jpeg)”, with a width of 1706 pixels and a height of 1279 pixels.
I then switched to clicking the “+” button next to the input box and selected “Upload File”. In the file selection dialog that popped up, the folder appeared empty—nothing was visible (as shown in Figure 1).

As shown in Figure 1: In DeepSeek’s file upload dialog, the directory list is empty with no files displayed.
Initial Investigation
I first suspected a bug in DeepSeek’s frontend or an issue with my Ubuntu system’s file permissions. However, I later tested the media upload feature in the WordPress admin dashboard and found it worked perfectly—images in the same folder displayed normally and could be selected (as shown in Figure 3).

As shown in Figure 3: In the WordPress admin media upload interface, multiple image files in the same directory display normally, including their sizes and modification times.
This indicated that the problem lay neither with the system nor with the file manager, but with DeepSeek’s file selector itself.
Key Discovery
I carefully compared the folder shown in DeepSeek’s file selector with the folder where I actually saved the image. I suddenly noticed a detail: the image I saved had the filename 1, without any extension (such as .jpg or .png).
To verify this, I renamed the image to 1.jpg. When I opened DeepSeek’s upload dialog again, something magical happened—the file appeared (as shown in Figure 4)!

As shown in Figure 4: After renaming, the
1.jpgfile displays normally in DeepSeek’s file selector.
Root Cause Analysis
I later realized the reason: when DeepSeek’s frontend invokes the file selector, it typically applies an accept="image/*" restriction. The browser or system file selector uses the file extension to determine whether a file is an image. A file without an extension (even if its content is actually JPEG) is considered a non-image file, so it is filtered out and hidden in the selector.
Why did pasting directly via Ctrl+V also fail? Because when copying an image from WeChat, the clipboard might not contain pure image data, but rather a file reference or a special object that DeepSeek cannot parse correctly, resulting in the “unsupported format” error.
Solutions
To address this issue, I have put together two solutions:
Solution 1: Manually Add an Extension
The simplest method: when saving the image from WeChat, manually append .jpg to the filename. Alternatively, right-click and rename the file to add the extension after it has been saved.
Solution 2: Batch Rename (Recommended)
If you are like me and have already saved a pile of extension-less images (such as WeChat’s default saved 1, 2, 3…), you can use a single command to batch append the .jpg suffix.
Open your terminal, navigate to the directory containing the images, and execute:
cd /你的图片目录
for f in *; do
[ -f "$f" ] && [[ "$f" != *.* ]] && mv -- "$f" "$f.jpg"
doneThis command only processes files without a dot (i.e., no extension), leaving files with existing extensions unaffected. Once executed, all your images will be properly recognized by DeepSeek.
A Temporary Workaround for Copy-Paste Failures
If you prefer not to save the file and just want to quickly send an image to DeepSeek, you can use a screenshot tool to capture the image area (for example, by pressing Shift+PrtSc) and then paste it directly into the chat box. This method copies pure image data and usually succeeds.
Summary
The root cause of this minor issue I encountered was actually quite simple: the file had no extension. On Linux, images saved by WeChat sometimes lack the .jpg suffix, causing them to go unrecognized by certain web file selectors. Adding the correct extension to the file resolves the issue.
I am recording this here in hopes that it helps others using Ubuntu + WeChat + DeepSeek. If you also encounter similar prompts like “folder is empty” or “unsupported format”, it is worth checking whether your files have extensions first.

