When I try to upload a music file, it doesn't attach. I don't get any errors or any messages saying something is wrong. The file simply does not attach. I am using drupal ver 5.7.

Thanks

Comments

Seedthrower’s picture

Got the same problem.

I've cleared out the sessions table and removed and reinstalled the audio module - still can't get it up and running.

jeff h’s picture

Would you both happen to be using Internet Explorer? Does it work for you in Firefox?

We are experiencing the same issue, but only in IE.

ridolfidesigns’s picture

No, I was using firefox when I tried.

I am glad I am not the only one getting this error. But there are only like three people that have it so I am thinking I am doing something wrong but I don't know what.

timmillwood’s picture

I am getting the same problem on 5.8 but I think it is because of the max file size. The PHP max file upload size is 2mb and my mp3 is 8mb so I will have to have a play.

Not sure if this helps?

ridolfidesigns’s picture

Yes, but I set mine higher than the file size that I was uploading and it isn't working. I really wanted to use this version for the playlist feature. The version I am running now doesn't have one as far as I know.

minesota’s picture

I am getting error opening file with drupal 5.8

View source shows incomplete file path while the download link has the complete and working file path and available file

<param name="movie" value="xxx/modules/audio/players/1pixelout.swf" />
<param name="wmode" value="transparent" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="FlashVars" value="soundFile=http://xxxx/audio/play/119" />
embed src="xxx/audio/players/1pixelout.swf" flashvars="soundFile=http://xxx/audio/play/119" width="290" height="24" />

The download link is ok
li class="first audio_download_link"><a href="http://xxx/?q=audio/download/119/kobita_gramafone_-2008-03-01-82928.mp3" class="audio_download_link">Download audio file</a></li> and shows the actual file.

Is is possible to replace in the code the file name from the download link stuff to flashvars params somehow ??

ridolfidesigns’s picture

Nobody has a reason why the files don't attach?

zirafa’s picture

@ minesota:

yes, it is possible to change this in the code. looks like the flashvars is using the relative url which breaks if clean urls aren't turned on.

for now try turning on clean urls and see if it works. but feel free to submit a patch to fix.

@ ridolfidesigns: check to see if the audio node is getting created at all when attaching audio. need to debug if it is just not attaching or if the audio node isn't being created in the first place (which of course would make it impossible to attach).

z

ridolfidesigns’s picture

Zirafa,

Thanks for taking the time to respond. The only problem is that I am new to drupal and I have very little php experience. How would I check to see if it is simply not attaching or if the audio node isn't being created? Where would I start debugging?

Thanks,

Eric

zirafa’s picture

You don't have to know php for that. Just try attaching a new audio file to another node. To check if it was uploaded, visit the /audio url which will list the recent audio nodes. if it doesn't show up, the audio was never uploaded.

ridolfidesigns’s picture

Thanks again for the reply. As far as I know nothing was uploaded. Once I choose an audio file and then click submit to finish the upload process, it acts as if I never chose a file and gives me a message stating that I didn't upload an audio file.

oadaeh’s picture

Check your post_max_size and upload_max_filesize settings in your php.ini file. It varies depending on the system you are using, but it is usually somewhere in /etc/php or /etc/php5. Make sure they are large enough for the files you are attaching. The post_max_size setting needs a little more than the file size, as it includes the other page file information that is sent when clicking on Preview or Submit.

The audio module really should be checking that and warning the user. It took me over half an hour to figure out why it wasn't working.

ridolfidesigns’s picture

It wasn't that. I was testing it locally on my machine and I had the post_max_size set to 64m and the post_max_size was set to 20m.

The file I was uploading was only 4m.

The fact that there is no warning or error message, I can't tell what the problem is. It simply doesn't work.

Thanks

slarosa’s picture

Version: 5.x-2.x-dev » 6.x-1.x-dev

Hi all,

I will post this message in a couple of help request in drupal.org, in order to be sure everybody finds them.

Igot mad for a whole week with Drupal 6.5 on a Mac OS X with XAMPP. I started wuth a clean drupal installation, no added modules, then I tried to make a blog post attacching a file and I was not able to upload it. Nada.

What it happened was that in the blog edit form, using the file upload "attach" button", nothing was attached and nothing was uploaded in the DRupal "tmp" dir.

I read a lot of post about:
- setting safe mode off in php.ini or be sure that ownership of tmp dir was the same of Drupal
- checking permitted file types and sizes in the "file uploads" configuration of Drupal
- checking 777 rights on the sites/default/... Drupal directory

Nothing worked until I did this:
- I EXPLICITELY SET the upload tmp dir in php.ini to be THE SAME of the tmp dir I set up in the file upload config in Drupal; forr instance:
upload_tmp_dir = /tmp
(just remember you must use full path in php.ini)

then suddenly all worked very fine.. the "attach button" attached my files and they showed in my blog posts!
I suspect many people getting mad at file upload here are using a plain xampp setup and their upload_tmp_dir is not set!

mlncn’s picture

Status: Active » Fixed

slarosa, you are my hero. Thank you!

Based on the descriptions of the local environment and lack of errors, this is likely the solution. I can develop modules that involve upload capability locally again!

benjamin, Agaric Design Collective

Paul M’s picture

Hi I am using Xampp version 0.74 and Drupal 6.6. All i had to do was remove the semicolon in front of the line in the php.ini file (this is found in xampp/etc)

Paul M’s picture

Hi I am using Xampp version 0.74 and Drupal 6.6. All i had to do was remove the semicolon in front of the line in the php.ini file (this is found in xampp/etc)

Status: Fixed » Closed (fixed)

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

wanderingstan’s picture

slarosa, you are my hero too. That was exactly the problem.

To whoever works on these things: Is there a way that this problem could be automatically detected? It seems that drupals file manipulation functions could do a double-check to see if the files actually got moved, and throw an error if not.