Simple addition to check that a file is a file before we try to upload it. At least on OS X trying to upload a directory results in problems.

Some other trailing whitespace cleanups got rolled in by my editor.

Comments

boombatower’s picture

Status: Needs review » Needs work
StatusFileSize
new832 bytes

I removed white-space clean-up since that is in several other patches and the rework patch should make in soon (#305077: Rework simpletest backend).

The upload test doesn't pass with this applied.

drewish’s picture

Status: Needs work » Needs review
StatusFileSize
new1.13 KB

ah, seems like the order of operations was getting wacky. this passes all the uploading (upload.module, blogapi.module, user.module) tests.

drewish’s picture

Status: Needs review » Reviewed & tested by the community

simple fix... still applies.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks!

Status: Fixed » Closed (fixed)

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