Online file storage firm Dropbox Inc signed up more paying subscribers in its second quarter as a public company than Wall Street was expecting.