Using CCK and Filefield.

Uploaded and converted files, including thumbnail, are getting saved with multiple slashes in file table filepath column. For example filepath = a//b. Later, when a/b is requested, Filefield knows nothing about this file as it is stored as a//b. I've isolated this to flashvideo.module file after I updated to rc3.

CommentFileSizeAuthor
#3 Capture1.PNG7.65 KBvenkiparam
#3 Capture2.PNG8.41 KBvenkiparam

Comments

venkiparam’s picture

I am having a file issue where I am getting a warning message which says

warning: rename(/opt/lampp/htdocs/qa.thesite.com/sites/default/files/tut_venkatesh/video/source/United in fight against AIDS_0.flv,/opt/lampp/htdocs/qa.thesite.com/sites/default/files/[user]/video/transcoded/United in fight against AIDS_0_110.flv) [function.rename]: No such file or directory in /opt/lampp/htdocs/qa.thesite.com/sites/all/modules/flashvideo/flashvideo.module on line 1026.

I am using the CCK module and the output path consists of a [user] token.

Thanks in advance

attheshow’s picture

Status: Active » Postponed (maintainer needs more info)

Dear venkiparam,

I noticed that your video filename contains spaces. I highly recommend using the Transliteration module ( http://drupal.org/project/transliteration) to eliminate spaces and other unacceptable characters from your filenames.

FlashVideo 1.5-rc3 includes a fix for when tokens such as [user] are used in file paths configured in your fields. Are you using this version of the module?

venkiparam’s picture

StatusFileSize
new8.41 KB
new7.65 KB

Hi,

Yes i am using the FlashVideo 1.5-rc3 version. Conversions are failing, Even after i changed the file paths to not include tokens. I have attached screen shots of the error message i am getting.

One which is getting passed is the previous version of Flashvideo(6.x-1.5-rc2) and the one which is failing is 6.x-1.5-rc3. Just in case any problem with the files folder ,I checked it and its writable.

For upgrading i followed this procedure

->Replace the old flashvideo folder with the new one
->Ran update.php
->Checked whether all the my settings where right. (As previous)
->Removed the Token from the file path option.(Cause this was getting displayed in the error, so though of removing and checking)
->& Saved the configuration

Hope i am clear, please bear with me as i am new and learning.

And thanks very much for pointing me to the transliteration module. Its really the one which i needed.

Venkatesh

attheshow’s picture

Category: bug » support
Priority: Critical » Normal

Are you sure that all of the directories where files are being sent are writable by the web server?

attheshow’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No further response here in two months. Closing issue.