$mp3config['encrypt_name'] = TRUE not encoding? |
[eluser]stevenazari[/eluser]
yep running apache I just stuck up a .htaccess file and if it works I'll do a search for the httpd.conf file although I'm a lill stumped as to why it would let some people upload mp3s and not others?
[eluser]stevenazari[/eluser]
just got a message from a user that it still wasn't uploading... did I make the .htaccess file right? all it had in the file was: Code: AddType audio/mpeg .mp3 what else could it be?
[eluser]rogierb[/eluser]
Did you create a list of files in the temp dir on upload? Like suggested, it might be the file gets uploaded but not processed for whatever reason. First make sure that is not the case...
[eluser]stevenazari[/eluser]
[quote author="rogierb" date="1255086685"]Did you create a list of files in the temp dir on upload? Like suggested, it might be the file gets uploaded but not processed for whatever reason. First make sure that is not the case...[/quote] Not sure what you mean by a list of files on upload? when I upload the file I don't get the oppertunity to see if it's there but I know the file is being moved to amazon s3 and then dropped from the server - think I'll remove the drop so I can check. then re-enable it to see if any of the failures end up on there. if they don't go on there it means file isnt uploading, if it is up on there, it means the file is not being renamed.
[eluser]stevenazari[/eluser]
Ok I'm pretty sure it's not uploading. The only unlink command is when the file is successfully uploaded to the Amazon S3 Code: $filename = $bandtrackupload['file_name']; I commented out the unlink so I can see what files are being uploaded for now, but I haven't seen any files that were NOT encoded... which only suggests they didn't go up in the first place.
[eluser]rogierb[/eluser]
Have you logged $this->upload->display_errors()? And $_FILES?
[eluser]stevenazari[/eluser]
[quote author="rogierb" date="1255111131"]Have you logged $this->upload->display_errors()? And $_FILES?[/quote] No, do I put that in the !is_file statement to output? not really sure how - I'm new to this area of code igniter... after some testing I can't seem to see the files I uploaded... only when I comment out the amazon s3 if statement can I then see the files in the upload directory... so is this moving or copying the file? **EDIT** Ok I just added Code: if (!is_file($bandtrackupload['full_path'])) will that do? Not sure what you mean by the $_FILE part
[eluser]rogierb[/eluser]
As far as my knowledge of uploads go: a: multipart form submits b: the $_FILES array contains info on that file c: The actual upload takes place and stores the upload in a tmp dir (php,ini tmp_upload_dir) d: The file gets moved to the locations you have specified, I dont know what happens if the file cannot be moved, maybe it is removed. Maybe it is still in the tmp dir. You check if the file exists after the upload. But does it get to the tmp folder?
[eluser]stevenazari[/eluser]
just running a remote search through the server now and can't see any mp3s in the tmp folder indicated in the php.ini Code: file_uploads = On doing a search through all the servers folders for any .mp3 extensions and not getting any returns in the admin area (where the tmp folder is located as well as other folders) so I'm a little confused why the $bandtrackupload array shows Code: Bandtrackupload: so all this data is taken from $_file while the file is being sent to the temp directory, php then moves the file to the folder. I know I'm using an old version of code igniter, from august 2008, perhaps I should upgrade this? maybe that will solve a upload bug? but how do I find out which version I have? I didn't install codeigniter, a previous developer did. **EDIT** I can see the files I upload in the target directory before being sent to amazon, So I'm just waiting for some of the users with problems to upload and tell me... But when I checked the tmp folder, there was no audio files there. So they are either not being uploaded at all, or not getting to the target destination and being deleted for being in the tmp folder for to long? that possible? or would php leave it in the tmp folder?
[eluser]rogierb[/eluser]
I think the tmp files are there as long a the script is running. To my knowledge they are deleted. Read http://nl.php.net/features.file-upload for more info. Directly after upload, before you check the bandtrackupload. Print out a list of all the files in the tmp dir. Just to make sure the file get's uploaded |
Welcome Guest, Not a member yet? Register Sign In |