Drupal 7 file upload changed the behavior of this function, now only certain file extensions can be uploaded unless this is overridden in code. Attached patch changes the Ubercart admin file upload so that it allows all file extensions. This applies only to the admin upload, it does not apply to any filefield the customer has access to. I think it's unnecessary to add a UI to allow the admin to restrict the file extensions that the admin can upload.

CommentFileSizeAuthor
allow-all-extensions.patch595 bytestr

Comments

tr’s picture

Assigned: Unassigned » tr
Status: Active » Needs review
silvercat’s picture

I can't believe this hasn't been found and fixed earlier. This patch was the only way I was able to upload a .mp3-file to the File Downloads-system of Ubercart. Thanks TR!

longwave’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.