solved jr_file file types

blindmime
@blindmime
11 years ago
772 posts
Sorry, I can't seem to get jr_file to allow jpg uploads. I've tried configuring in the module and also in the form designer on create and update, but no go.

Any thoughts?
updated by @blindmime: 01/23/15 09:35:39AM
brian
@brian
11 years ago
10,149 posts
Do you mean the File Downloads module?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
11 years ago
772 posts
Yes
michael
@michael
11 years ago
7,806 posts
You havn't put jpg in the allowed file types for the profile thats trying to upload the image.

Go to:
ACP -> FILE DOWNLOADS -> QUOTA CONFIG

Select the quota that the profile your trying to upload to is in.

Change "Allowed File Types" to
zip,doc,txt,pdf,jpg

Then try again. Worked for me just now.
brian
@brian
11 years ago
10,149 posts
I have tested here and it is working for me as well.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
11 years ago
772 posts
I have this for all quotas:
screenshot_240.jpg
screenshot_240.jpg  •  48KB


updated by @blindmime: 12/10/14 10:59:53PM
michael
@michael
11 years ago
7,806 posts
Not sure what to tell you. That's the setting that's checked.

Try clicking "Apply to all quotas" then hit save again.
blindmime
@blindmime
11 years ago
772 posts
I've done that too.
brian
@brian
11 years ago
10,149 posts
blindmime:
I've done that too.

I too see no issues at all - something else is coming into play here that is breaking it for you. Are you running the latest version of the module? Have you customized it?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
11 years ago
772 posts
I've customized template and language, but the not the module itself. I'm running the latest version.

I do have jrFile on another website and I'm able to add jpg.

I was having this issue here and got diverted to something else and never resolved it:

https://www.jamroom.net/the-jamroom-network/forum/using-jamroom/10863/jrfile-not-accepting-jpg#last

I did reload the module (just now) and still can't get any other kind of file besides the default four types to upload on this site. I doesn't matter what I enter into the module's allowed file types field.

You asked to log in and check, Brian, but I don't remember if I had you log in and check or not.
updated by @blindmime: 12/13/14 03:58:55AM
brian
@brian
11 years ago
10,149 posts
Go ahead and send your login info to support [at] jamroom [dot] net as I'll have to get some debug on your site to try and see what the issue is.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
11 years ago
772 posts
Done.

No rush, at your convenience.
brian
@brian
11 years ago
10,149 posts
Thanks for sending that along. The root cause here is that you need to go into the Form Designer for the form and allow the allowed file types in there (add it to the "options" textarea). It looks like the file module is setup to allow the file upload field to "override" the Global Config settings once the form has been customized (and yours has been customized).

So go in there and set it up and it will work.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
11 years ago
772 posts
That's what I would expect, but I've already tried that and it doesn't change. When I try uploading jpg I still get a warning message saying the file isn't of type zip, doc, txt, pdf.
brian
@brian
11 years ago
10,149 posts
OK just got logged back in to your site and see that was well - let me check it out some more and I will get back to you.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,149 posts
OK this should be fixed on your site now - what's weird is that I should see the same issue here locally, but it's working for me locally, so I need to investigate it a bit more, but you should be good to go on your site.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
11 years ago
772 posts
Was it in the code?
brian
@brian
11 years ago
10,149 posts
blindmime:
Was it in the code?

Yeah - in jrCore/lib/form.php.


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

Tags