javascript - Using the dash character in property of object -
i trying upload aws s3 directly using plupload. works great on firefox 22 not firefox 18.
in older version of firefox, error ns_error_cannot_convert_data , have narrowed down line:
up.settings.multipart_params['content-type'] = 'image/png';
the reason doesn't work because multipart_params isn't supposed array/object. however, way - in property name.
is there anyway can use dash without using square brackets?
no, '-' not valid in javascript variable name. using in way using 'workaround' know of.
Comments
Post a Comment