Getting "Invalid file extension" alert on plupload attempt after upgrade to V7

614 views
Skip to first unread message

Arne Hermann

unread,
Mar 10, 2015, 7:45:12 PM3/10/15
to resour...@googlegroups.com
Hi guys,

I can't find any help on this so am asking here. I'm in the process of upgrading a client to V7.0.6244 FROM V4.5.3428. I have probably done this upgrade improperly but most things so far seem to work so I'll run this by you.

I installed a parallel version of RS on a different hostname (e.g. rsv7.[domain].com instead of www.[domain].com.  Then, I exported the RSV4 mySQL DB to text and then imported that into an empty database for the V7 site; this was done because when I tried to copy the mySQL DB to the "new" one there was an error creating some triggers and this just seemed the best way to get around that. So far it appears that the DB structure is the same between versions although perhaps someone will tell me that it's not and I'll encounter additional problems.  In any event, when I try to upload a new resource via the HTML5 uploader, here's what happens.

The upload plupload.php script page output shows:

"Allowed extensions: .CR2, .CRW, .DNG, .EPS, .GIF, .JPG, .MOV, .MP4, .NEF, .PDF, .PNG, .PSD, .RAW, .RWL, .TIF, .XMP"

which is the list that is contained in the resource type definition for this type of resource in this case (called type="image").

However, attempting to upload any of these types via the HTML5 uploader results in a javascript alert (for example):

"Error: Invalid file extension: filename.[ext]" where [ext] is the file type I'm trying to upload. This happens instantly because it's handled by jQuery. 

So... given that the allowed extensions list is the correct one, and my type *is in* the list, does anyone have a clue as to why is this happening? Note that this is not a matter of letter-case for the extension.

TIA,

-Arne

Arne Hermann

unread,
Mar 18, 2015, 5:11:35 PM3/18/15
to resour...@googlegroups.com
 Hi guys,

After much hair-pulling, I still have this same issue (see above).  I've tried to trace the problem through the javascript but it's rather convoluted because of the jQuery code and I'm not getting anywhere. Can anyone help please?

-Arne

Jeff Nova

unread,
Mar 18, 2015, 8:20:09 PM3/18/15
to ResourceSpace
I don't see leading periods on the extensions on our lists here.  Could that be it?

CR2,CRW,DNG...

instead of 

.CR2, .CRW, .DNG...

?

Hope it's that simple!
Jeff

--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.org
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arne Hermann

unread,
Mar 18, 2015, 8:59:33 PM3/18/15
to resour...@googlegroups.com
Jeff,

THANK YOU!

Wow, that the "." (dot) in the extension caused an issue did not even occur to me... it worked fine in the previous RS version.  I guess that's because the old Java uploader didn't care either way.

-Arne

EZEQUIEL Lio

unread,
Sep 17, 2022, 7:50:06 AM9/17/22
to ResourceSpace
I have the same problem. but on this occasion I have the extensions well placed. jpg, psd, psb  
It was working fine until version 8 and now I always get this message. this error does not happen uploading Alternative files

Reply all
Reply to author
Forward
0 new messages