Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
drewish CreditAttribution: drewish commentedi'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.
Comment #2
sounds CreditAttribution: sounds commentedThanks 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?
Comment #3
drewish CreditAttribution: drewish commentedwell 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.
Comment #4
sounds CreditAttribution: sounds commentedThanks
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
Comment #6
mongo.tld CreditAttribution: mongo.tld commentedOkay, 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.
Comment #7
sounds CreditAttribution: sounds commentedIt's under site configuration / audio settings?
Mine is set to tmp/audio
Right or wrong i forget
Comment #8
captaingeek CreditAttribution: captaingeek commentedsee http://drupal.org/node/176562
Comment #9
Dublin Drupaller CreditAttribution: Dublin Drupaller commenteddon'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.