Made share button work for non-folder files