File Upload Widget Allowed Type not working

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
brianhd71
Profound User
Posts: 36
Joined: Thu Jan 02, 2014 6:20 pm
First Name: Brian
Last Name: Lannoye
Company Name: Dealertrack Technologies
Phone: 801.617.1806
State / Province: Utah
Zip / Postal Code: 84095
Country: United States
Contact:

File Upload Widget Allowed Type not working

Post by brianhd71 »

We are trying to set the allowed type property custom (CLE) for this widget and cannot get it to run without throwing an error that the type is not allowed. The property value is application/cle
Capture.PNG
Capture.PNG (13.77 KiB) Viewed 445 times
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: File Upload Widget Allowed Type not working

Post by Scott Klement »

So 'test.gle' (with a G) is the same as 'application/cle' (with a C)?

I've never heard of application/cle. Are you sure your browser is reporting this as the type?
brianhd71
Profound User
Posts: 36
Joined: Thu Jan 02, 2014 6:20 pm
First Name: Brian
Last Name: Lannoye
Company Name: Dealertrack Technologies
Phone: 801.617.1806
State / Province: Utah
Zip / Postal Code: 84095
Country: United States
Contact:

Re: File Upload Widget Allowed Type not working

Post by brianhd71 »

CLE is a typo. The file has the extension .gle
brianhd71
Profound User
Posts: 36
Joined: Thu Jan 02, 2014 6:20 pm
First Name: Brian
Last Name: Lannoye
Company Name: Dealertrack Technologies
Phone: 801.617.1806
State / Province: Utah
Zip / Postal Code: 84095
Country: United States
Contact:

Re: File Upload Widget Allowed Type not working

Post by brianhd71 »

I know it will work with the pre-filled properties like .pdf. So you are saying application/gle won't work because the browser won't support custom mime types?
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: File Upload Widget Allowed Type not working

Post by Scott Klement »

Custom MIME types should work fine. Have you configured your browser so that it knows the proper custom MIME type for .gle files?

The issue here is the browser needs to know that files ending in .gle should be considered "application/x-gle" (if you want to follow the standard, any custom MIME type should begin with "x-"), and that therefore the browser should identify the file as such when uploading it.

Usually if a browser encounters a file type it's not familiar with, it'll use a MIME type like "application/octet-stream" or "text/plain" (if the document appears to be made of text). It will not choose a MIME type like "applicaion/gle" just because the extension is .gle. You would have to configure that MIME type on every PC so that it knows about this MIME type before it'd use it.

http://stackoverflow.com/questions/1201 ... by-browser
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests