為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Upload dialogue file format options selector in Mac OS?

more options

Hi,

When using Safari or Chrome, my workplace's website defaults to uploading PSD files, but there's also a selector that allows me to upload PNGs.

Firefox doesn't show the selector and PNGs are greyed out. I can't upload those files. I can't find if there's an option to show the file type selector.

Please see the attached image comparison.

Hi, When using Safari or Chrome, my workplace's website defaults to uploading PSD files, but there's also a selector that allows me to upload PNGs. Firefox doesn't show the selector and PNGs are greyed out. I can't upload those files. I can't find if there's an option to show the file type selector. Please see the attached image comparison.
附加的畫面擷圖

所有回覆 (5)

more options

Is there any public page that demonstrates this problem (public meaning, no login required)?

If you compare the Browse button below the reply box on this forum, which is limited to particular image types, do you see the same difference between Firefox and the others, or is Firefox more flexible with the one here?

The code for the file upload control here is:

 <input type="file" id="id_image" name="image" size="30"
    accept="image/jpeg,image/png,image/gif"
    title="Browse for an image to upload."/>

(Sorry for not testing that myself, I'm on Windows during the day.)

由 jscher2000 - Support Volunteer 於 修改

more options

Hi jscher,

Sorry, I wish there was a public way to demo, but there isn't.

The "Browse..." button below does indeed show the "Format" selector. I don't know why FF won't show it on our page when it does show in Safari and Chrome.

I guess I'll have to ask the IT guys to look at the code. Thanks for the help!

more options

Can you post the code that is used for that element?

You can right-click and select "Inspect Element" to open the builtin Inspector with this element selected.

more options

Hi folks,

Thank you for your replies.

I've talked about this with our IT person. I'm told that the window with the "Upload" button is from an Adobe Flash call.

The upload window is Flash code because it was made in 2003 or something. There's little to no chance that the code will be updated.

I have the most current Flash updates installed.

Considering that the "Format" selector shows up in Chrome and Safari, I wonder if it's how FF renders the Flash code. (I'm not a coder, obviously, so my jargon may be off.)

I hope this helps. Do you still need to see the code? I'm not sure how to bring this up, even with the Inspect Element tool. Thanks for your time!

more options

Some of the parameters for the Flash control may be "inside" the SWF file and therefore inaccessible. Others might be defined in the page., so it's worth taking a look at the code. Usually this would be something like:

<object> parameters </object>

If one of the parameters specifies permitted file extensions, perhaps that could be, er, hacked to include the ones you want the uploader to list.

To find the Flash object in the Page Inspector may not be obvious, since unlike a video, it doesn't have to be right there at the upload button. But it might be.