function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

VisualForce Testing Using Static Resource Test Data

We are using the Winter 13 feature to use Static Resource test data.  Getting an error that says "Content type not allowed".


Our test data is a zipped .csv file which is showing as an application/octet-stream MIME Type.  Is this the problem and, if so, I'm not seeing how I get it to show as something different.


**UPDATE: Ugh! The issue appears to be what browser is used to upload the Static Resource! I saw someone from 2010 posted similar. I was using Firefox and it would not take the .csv upload and said the zip was an octet-stream.  When I tried using Chrome, the .csv uploaded as an Excel file which worked for the test class.  The person from 2010 had same solution but reverse browsers (issue with Chrome, worked with Firefox)