Hi,

I have installed the last version Visual file select module. Everything works fine, but when you open the modal window, and select the file, the window closes, and when the file form element is refreshing it shows up the element empty again, to chose the file. I have installed jquery update, but it doesnt work with it or without it.

CommentFileSizeAuthor
#3 screen3.jpg113.48 KBglizarraga
#3 screen2.jpg111.71 KBglizarraga
#3 screen1.jpg112.55 KBglizarraga

Comments

rudiedirkx’s picture

What do you see in the (filefield_sources) field/widget immediately after clicking a VSF item? Does it enter a filename and start loading?

Could you capture the request it makes using Chrome devtools or Firefox Firebug and post it here? I'd like to see the response. It might be validation.

It might not even send a request because the file extension doesn't validate. Check that.

glizarraga’s picture

It does not show anything on chrome console, but it sends the request, on the network tab, a am able to track the ajax request ajax/form/[form-item-name], and it appears to be everything ok, I researched and seems to be the drupal 7 jquery version incompatibily with the scripts on VFS scripts.

glizarraga’s picture

StatusFileSize
new112.55 KB
new111.71 KB
new113.48 KB
glizarraga’s picture

the same happens also with the imce filesources integration module, when viewing files on the imce windows and selects one, it does not load on the file element, it keeps empty.
I am thinking that is "file sources" module bug

rudiedirkx’s picture

I don't think VSF requires exciting jQuery, but I do develop everything with jQuery Update enabled, so that's at least jQuery 1.5.2 I think.

Does that help?

I can't really debug your situation, so I'm not very useful here...

glizarraga’s picture

HERE IS THE URL http://locmex.messicom.com/node/add/punto-de-inter-s
there you can debug.

rudiedirkx’s picture

Try if it works without VSF. It might be FileField Sources. Or maybe another module messing things up.

The reponse is good: html with the selected picture, but it doesn't show, because the JS selector is null. I don't know why... Any exciting modules that alter the node form?

glizarraga’s picture

With imce doesnt work neither, Maybe is another module messing up.

rudiedirkx’s picture

Yup. Try disabling file/image/form related modules until it does work. Debugging Drupal hooks is no fun.

glizarraga’s picture

I noticed that when setting the field to allow more than 1 value, it works right. But Whe I set to only accept 1 value, it disapears when selecting the image.
I cant figure out how to fix it, because I need just one value in my field

rudiedirkx’s picture

Didn't we conclude it was FileField Sources that's to blame, not Visual Select File?

You can move this issue there via "Update this issue" or create a new issue there.

I can't debug for you, because I have a different environment, where everything works perfectly.

glizarraga’s picture

Well, which drupal version and filefield sources are you using?

rudiedirkx’s picture

I'm on Drupal 7.24 using FFS 1.9, but it's irrelevant, because it's not a FFS issue. It's your env, probably another module.

rudiedirkx’s picture

Status: Active » Closed (cannot reproduce)