Thanks for such a lengthy response.....I will quote you and then try to give you the answers in bold (that I can answer for you). Don"t worry, I can take time to work on this.....I have been working on it for the past week searching through all the forms. This is my last resort....asking you guys for help. I very junior still at working Cook!
Firstly,
Is it possible that you actually mean MIME such as...
- application/msword
- application/pdf
** I am referring to opening up JPG files. I am building a component for Pet records and want them to be able to upload a picture of their pet and a scanned JPG of the vet certificate. ****
Secondly,
- What cook Build version are you using (1.5 or 2.0beta)
- from the error description of " - jqv:custom rule not found - file" i draw that you have defined a custom MIME type
- I have seen this in a 1.5 build
****I believe it is the V2.0beta. I just recently found this builder a few weeks ago.....does that help? The only version info I can find on the main menu is V2.0 beta. *****
MIME Check failures can also be related to different file and folder permissions, there is no common solution and as i have found out in the past it is very much server specific
Willing to help but please be patient it may not be a quick fix, to help us assist could you kindly provide some additional information -
Thank you so much!
Q1 - what operating system are you using for your WAMP server
- Windows file permissions are handled in a different way
**** Windows 7, but I only checked the WAMP server as a last resort******
Q2 - could it be that you are trying to set up a MIME type that the sand box will not handle
- it would also help us to assist if you could provide details of the file type you are trying to build a custom rule for such as .docx as the mime validations may be a little different
*****I am trying to set it for a JPG. It doesn't matter if it is in the sandbox, on my server or on the WAMP server, it all gives the same error. At first I didn't even set it to anything but JPG and I have tried to set different combinations in the "Rename" spot.
Q3 - cant find php.ini?
- "One thread even said to check my php.ini file. Although I couldn't find it on my server" => is this a hosted server?
some hosts do not allow access to your php.ini file while others allow you to drop a custom php.ini in a specific area
- do you have the relative fileinfo .dll file in your php extensions directory?
- I have a php version on one of my test servers that only includes the basic .dll extensions fileinfo .dll is not even included
***Still Looking. I will get back to you on this*** I do have the php.ini on the WAMP SERVER and it seemed to be set right according to that other post. I cannot find that file on my hosted account which is actually under my reseller account
Q4
- can you check your php/tmp directory?
- is there any files in your php temp directory?
- once the script completes the php temp should clear (from memory)
- if there is a file in your php/tmp directory it is most likely that it is a file permissions issue
****IS this in the component file?? Or on my server somewhere?? I can't find any such file. There was none in the main tmp directory on my hosting account. I cleared anything in the Joomla main tmp file. Doesn't make any difference********
Q5
- is the com_componentname/files/"something"_files directory created?
- what is the CHMOD value on this folder?
**** 0755 ****
Q6
- Can you manually upload the original file via a FTP to your site
- does your server "serve" that file type or does it prompt you to download the file when accessed from a browser
- most hosts allow you to specify additional file types... is this a registered MIME type on your host?
As i said willing to help but as you can see there could be a lot of variables along the way...
****I will have to get back to you on all of this. I haven't set up the ftp on this account. There has been issues with FTP'ing on this reseller account in the past but it has always been to do with FTP settings. It has never rejected me from uploading any image file in the past. I will have to set up an FTP account and check all of this.****
Thanks so far for your help. I will try to get back to you later tonight with this information. Please forgive me but my family and I are running out for the afternoon.
********************************************************
BTB300
I am sorry for taking a while to get back to you. I was taking time to check everything you said real well.
I did manage to set up my FTP and yes, I am able to Ftp up as well as upload through the cpanel on my hosting account.
1) rename file "{ALIAS}.{EXT}" without quotes
Okay, did that, still no change. I am still getting the error in both the sandbox enviroment, the wamp server and the hosting account.
2) try to upload a .jpg file in sand box (with a lower case extension)
i have seen before if you try to upload somefilename.JPG sometimes it fails because some servers are case sensitive and simply expects everything to be lowercase
I have been doing that all along but I checked it again for you. No change. since most of my images are lowercase, I also tried an uppercase just for the heck of it. Still no change. the error still pops up.
As for Windows 7 / WAMP
- Although i don't use WAMP i do run test servers on Windows 7 with apache and IIS - i will check my file permissions today and post tonight
Thank you so much
in the mean time
- In the WAMP php.ini check for a defined upload directory such as c:\php\temp (make sure its not commented out with a ; before it)
Okay, I did find it and yes it had a ; in front of it but I removed it and restarted the WAMP server. Still, it didn't work. I still get the error.
- does your internet guest user account (usually something like COMPUTERNAME_IUSR) have read and write access to the php upload directory and the file upload directory
It appears to... I was able to upload a photo through joomla in the media files section. However when I right click on that file and go to properties in the guest mode, it says "Read Only"
- check your php.ini for the maximum upload size (usually defined somewhere near the upload directory)
2 M
when the upload fails (WAMP Server)
- check the php upload directory
- is there any files in there something like sdPHP.tmp
I haven't see anything like that.