Hi,

I have drupal 6.12 installed,

I have configured the audio import module's settings.
I have the audio folders at the root of the server
So the path is /tmp/audio/ and chmod each to 777
But it keeps saying the .tmp/audio doesn't exist

Comments

drewish’s picture

Status: Active » Fixed

i'm not sure if it was a typo but ".tmp/audio" is a different path than "/tmp/audio/". you should try moving the import directory inside drupal's root directory and see if that helps.

sounds’s picture

Thanks for your reply,
Yea that was a typo
But isnt that less secure to have your files in the www directory?
I mean the folders were out outside the www directpry for a reason right?

drewish’s picture

well you need to figure out how to get the files into the import directory. if you're using ftp you've got to trust who ever is uploading the files so it could be a risk if you've got random people uploading files. but in either case you should try it so see if it works. if it does then we can consider how to get the permissions setup correctly so it works from other locations.

sounds’s picture

Thanks

I got it to work by creating the tmp/audio folders in the www directory, couldn't get it to work outside, maybe had the path wrong

Status: Fixed » Closed (fixed)

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

mongo.tld’s picture

Okay, not to sound like a total newb, but do you recall how and where you were able to configure the audio import directory? I can't see where to do that.

sounds’s picture

It's under site configuration / audio settings?
Mine is set to tmp/audio
Right or wrong i forget

captaingeek’s picture

Dublin Drupaller’s picture

Status: Closed (fixed) » Active

don't have time to create a patch, but, if you change the following lines in audio_import.admin.inc it will work.

change line 9: '#default_value' => variable_get('audio_import_path', file_directory_temp() .'/audio/'),

to '#default_value' => variable_get('audio_import_path', '/audio/'),

and line 28 from $audio_dir = variable_get('audio_file_path', file_directory_path() .'/audio');

to $audio_dir = variable_get('audio_file_path', '/audio');

it will work as expected.