Not sure what I'm doing wrong here. I try to upload a file; after a few moments I'm told that the title and artist fields (metadata) are required. I supply both of those and then I'm told "A file must be provided. If you tried uploading a file, make sure it's less than the upload size limit." (I did provide a file -- it's a 1.3MB file.)

Any idea what's causing this error?

CommentFileSizeAuthor
#2 nofile.png42.49 KBmrtoner

Comments

drewish’s picture

not sure, try up loading a file less than 1mb in size and take a screen shot. i'd like to see what you're actually seeing.

mrtoner’s picture

StatusFileSize
new42.49 KB

Okay, found a small (88KB) mp3 and uploaded it. I still get the "A file must be provided..." error upon submitting the node.

(I disabled the required artist and title fields. Being new to the module I didn't immediately realize what was happening there. Now I know.)

Screenshot attached.

cjwysong’s picture

I'm using version 5.1 of the drupal install. Got same problem. I just disabled the required stuff you mentioned. Still same problem. Have you solved it? If so, please let me know how you fixed it. Thanks.

drewish’s picture

humm, that is strange. i'd check drupal's files and temp paths.

mrtoner’s picture

I'm using a private file system, with my paths at /home/username/files and /home/username/files/tmp. The audio settings page is not reporting a problem with the /tmp path and the audio module created the /tmp/audio directory. All of the files I have attempted to upload are in that /tmp/audio directory.

cjwysong’s picture

I still have the same problem. I pretty much installed it "out of the box" just like the instructions stated. I've even done it before. I don't know where I did wrong.

My index.php for the drupal site is at the mail level i.e.:

"www.mysite.com/index.php"

------------------------------------
Inside the Drupal Site under: Home › Administer › Site configuration

The File system is...
File system path: Files
Temporary directory: /tmp
Download method: Public-files are available using HTTP directly.

File uploads is...

Maximum resolution for uploaded images: 0 WIDTHxHEIGHT
List files by default: Yes
Default permitted file extensions: jpg jpeg gif png txt html doc
xls pdf ppt pps avi mpeg mpg mov rm flv wmv 3gp mp4 dir dcr
mp3
Default maximum file size per upload: 100 MB
Default total file size per user: 1000 MB

Your PHP settings limit the maximum
file size per upload to 2 MB.

The getID3 library was found and is listed as: 1.7.7

I ensured cron.php was run just in case too.

Are there any other trouble shooting tasks which could help?

Sincerely,
Chris

tunesmith’s picture

I got this once too.

In my case, problems only seem to happen when I'm trying to upload two files at once in different browser windows. In this case I did:

1) Initial filling out of form of mp3 #1, "choose file", and preview (file uploads)
2) mp3 #1 finished uploading (to /tmp/audio/filename), and I let the page sit there
3) Initial filling out of new form for mp3 #2, "choose file", and preview (file uploads)
4) While mp3 #2 was uploading, I filled out the missing "artist" field for mp3 #1 and pressed submit to publish
5) I got the "A file must be provided" error for mp3 #1. the mp3 still existed in /tmp/audio though.
6) mp3 #2 uploaded fine. I was able to submit/publish.
7) I reuploaded mp3 #1 and successfully published.

Hope that helps.

I thought I noticed a couple of other concurrency issues - less success finding the id3 tags (all my mp3s have all tags, but only once out of 25 times now has it found all the relevant ones), and a timeout once while I was trying to actually upload two at once... but I thought they might have just been network problems of my own.

drewish’s picture

Title: Error On Upload » Error uploading files simultaneously

Uploading files at the same time will cause that problem and there's really not much that can be done simply. If you've got a bunch of files you want to upload, consider using the audio_import module.

drewish’s picture

Status: Active » Closed (won't fix)
tanoshimi’s picture

I've just had this problem too, but (although I did have multiple tabs open on the same drupal site), I'm sure I'd only ever had one instance of the 'create content->audio' node.
Now it seems that everytime I try to upload an audio file I'm getting this problem - is there something I have to clear in the cache somewhere?

Thanks for any help.