switched from file.type to regex on file.name as Chrome was returning a blank file.type
added /dev rewrite
update item closes modal window