Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

pagePath issues
  • Hey folks,

    Really odd issue popping up, trying to integrate uploadify with drupal 6.19. It works on pages with very few elements in the path, but not on anything with more than one slash. So for example all is well on http://server/user, but not on http://server/user/1 or even on http://server/user/ (note trailing slash)

    What gives??

    I notice some code in the uploadify jquery plugin doing this:

    var pagePath = location.pathname;
    pagePath = pagePath.split('/');
    pagePath.pop();
    pagePath = pagePath.join('/') + '/';

    Seems to be related. But I'm not sure why we're arbitrarily dropping the last element of the path. What is the flash actually expecting to be in this variable?

    Tom
  • Anyone out there?
  • Hmm.. has this forum gone dead? Frustrating - I'm sooo close to having a working multi-file uplaod solution here. If only I could get it to work with different Drupal-esque paths. Hoping for a knowledgeable reply.

    Tom
  • Hmm... OK can I pay someone money to answer the question? This is important.
  • im having the exact same problem, i am not trying to pass varibles to uploadify but simply having slashes or variables in the url breaks the code.
    any fixes?