jrFile not accepting jpg

blindmime
@blindmime
10 years ago
772 posts
I can't get the jrFile file_file field to accept a jpg file. I've added this file type extension to both the quota config and the form designer allowed file types, yet it gives an error on the jpg upload.
updated by @blindmime: 06/09/14 11:19:28AM
michael
@michael
10 years ago
7,717 posts
Some steps on how I can get setup to see it happening would be helpful.
blindmime
@blindmime
10 years ago
772 posts
These are standard options in the jrFile module so you should be able to go to the module's quota config and try setting jpg as a file type. The jrFile module has a quota config field where you can specify allowed file types. I've set this to allow jpg, among others like zip, pdf. But the form is not allowing me to upload a jpg file. I've also set jpg as an option in the form designer option field for the variable "file_file". I've also tried it with no options in the form designer options (letting the module's quota config determine it).
michael
@michael
10 years ago
7,717 posts
Just tried here, and did not run into any issues.

Steps:
* add jpg to the "Allowed file types" (site.com/file/admin/quota/id=1) for all quotas.
* go to a profile who's allowed to upload file types: (site.com/admin/file) click create.
- title: "A jpg image file"
- File: house.jpg
* click CREATE

The file is created as expected.

EXPECTED BEHAVIOUR:
When i click on the download button next to the file item, it downloads

ACTUAL BEHAVIOUR:
Same as expected.
blindmime
@blindmime
10 years ago
772 posts
I think I'm doing the same thing with unsuccessful results: http://youtu.be/fQQ0TV2sfS8
michael
@michael
10 years ago
7,717 posts
First thought is agressive caching by Chrome. Try firefox.

Try:
* run the integrity check
* clear the caches.

Clear the browser cache ctrl+F5
blindmime
@blindmime
10 years ago
772 posts
Tried all those. Still no luck.
Developer Networks
Developer Networks
@developer-networks
10 years ago
566 posts
I tried to re create the error and it was working fine when testing. I shot a youtube of the second run. Try applying the ,jpg to all quotas. Maby its not configured correct for the quota your trying to add a file to?
jpg files
Developer Networks
Developer Networks
@developer-networks
10 years ago
566 posts
Ahh I just went over your video again. I see you did apply it to all quotas already. Looks like you have modified the module right? Something in your version is now conflicting. Id back up your work, and clone the original unaltered latest jrFile module to your own new one. jrAprana module does this i believe. This way you can make the changes with out effecting the jrFile one.

You should be able to take it all the way to a jpg upload by just adding the extension ,jpg in the module configuration. No need to add the field in the Form Designer as you see in my video.

One last thing I would suggest if your on a dev server and comfortable with this is deleting the entire module. Including all the items in your DB correlating to it.

Clear cache, integrity check and Re install the jrFile module and give it another install and run from a fresh install.
updated by @developer-networks: 05/05/14 02:17:04AM
blindmime
@blindmime
10 years ago
772 posts
I haven't altered the module other than form designer and language modifications.

jrAparna doesn't clone modules, it creates a new base module.

Deleting the data is not really an option unless I can put it back it. I have clients accessing it.

If I overwrite a a fresh copy of the index.php and other root module files (not the template file), the language and new form designer fields aren't lost, right?
michael
@michael
10 years ago
7,717 posts
form designer fields are stored in the database. uploading a new index.php file will not effect them.
Developer Networks
Developer Networks
@developer-networks
10 years ago
566 posts
Yea, what I would do then is just start fresh unmodified including language modifications and get the core functionality working. Then try to slowly bring in your mods.

You might find which one broke the functionality easier this way.


updated by @developer-networks: 05/06/14 01:34:57AM
brian
@brian
10 years ago
10,148 posts
blindmime:
I can't get the jrFile file_file field to accept a jpg file. I've added this file type extension to both the quota config and the form designer allowed file types, yet it gives an error on the jpg upload.

Let me test this out here and see if I can duplicate this, and I'll let you know.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,148 posts
It's working here for me. Some things to try:

- add "jpeg,jpe,jfif" to allowed file types as well just in case they have these extensions (they are JPG files as well)
- try a different image - it could be the one is corrupt
- try a small image - are you exceeding the max allowed upload size?

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
10 years ago
772 posts
Yeah, I've tried all those things. Incidentally, if I add any option (like png, etc.) I still can't upload those either. Or if I have no options. It's simply ignoring the config options and going with the default 4.
douglas
@douglas
10 years ago
2,791 posts
Just curious, as I've tested this too and I'm not seeing any issues either, are you adding ".jpg" to the allowed file types field or just "jpg"?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
blindmime
@blindmime
10 years ago
772 posts
just "jpg" -- that's how the others are listed (zip,doc,txt,pdf).

I just tried ".jpg" for fun but it wasn't much fun. It didn't work either.
douglas
@douglas
10 years ago
2,791 posts
LOL@ wasn't much fun...

Just trying to help narrow it down. ;)

Have you tried reloading the jrFile module via the Marketplace > Tools > Reload Modules And Skins?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
brian
@brian
10 years ago
10,148 posts
Yeah this should be working - go ahead and contact me via email with your login info and FTP info and I will check it out.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
10 years ago
772 posts
Thanks Douglas, I couldn't remember how to reload. I see it now. If I reload the module, I'm assuming it re-loads everything and overwrites module templates in the modules/xxx/templates folder -- right?
brian
@brian
10 years ago
10,148 posts
blindmime:
Thanks Douglas, I couldn't remember how to reload. I see it now. If I reload the module, I'm assuming it re-loads everything and overwrites module templates in the modules/xxx/templates folder -- right?

Yes - it will completely reload the module folder for the current version.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags