I'm using filefield 6x-3.7, Drupal 6.19, on WAMP (php 5.2) on windows XP.

I moved my site from Ubuntu 10.4 running php 5.3 over to the windows side for various reasons and some of my filefields suddenly started giving 'The file could not be uploaded' errors. I tracked the issue down quickly to the path settings.

My path settings for these problem fields are all [user]/[date-in-tz]. If I remove the [date-in-tz] part, then the fields upload fine. For some reason the system is able to create the needed directories down to the last one but cannot create the final 'dated' directory. Is there something about the date settings that can cause the date dirs to be non Windows compatible.

Comments

quicksketch’s picture

Status: Active » Fixed

The date-in-tz token may contain characters that are not allowed in file directories (like "/"), use the [yyyy], [dd], and [mm] tokens to assemble the date manually for your directories. See #242497: Tokens for site-date and date-in-tz create poorly formatted file paths.

tbenice’s picture

Very good, thanks.

Status: Fixed » Closed (fixed)

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