Hey there, I'm having a problem with the filestore module. I think it's something dumb that I'm overlooking, but I've looked everywhere I can think of. Hopefully someone else has run into this problem and can help.

Basically, everything seems to work perfectly with the filestore module until someone clicks on download and then clicks "open" instead of "save" on the windows download file dialog box. The file will download to a temp directory like it should, you can see the status bar and everything, then the default application starts up (again, as would be expected), but then I get an error message saying the file doesn't exist. This occurs with multiple file types (.doc and .pdf) and has been reproduced on multiple computers. If I click "save" instead of "open", I'm prompted for a place to save the file, and everything works fine, it's ONLY when I click the "open from current location" button.

Help?
thanks,
Robby

Comments

robby1066’s picture

Oh if it helps anyone understand what I'm talking about. Go here and try to download something from a windows box. Click "open" instead of "save" when prompted.

http://www.alaskatca.org/?q=taxonomy/page/or/3

Lappie’s picture

So I tried your link and everything was fine, using Opera 7.21, so what's the problem, I thought? ;)

Using IE, however, it did result in the error message.

Not a solution unfortunately, but this clarification may help somebody else.

robby1066’s picture

Thanks, that helps to know it's an IE specific thing. I hadn't tried it out on Opera yet.
I just tried it out on Netscape 7 and everything works flawlessly there.

robby1066’s picture

I think what it turned out to be was that my pages were set to not be cached by the browser. so when they would be downloaded to cache and the viewer app would try to access them, they wouldn't be there. I went into the filestore module and added this (around line 190, where the headers are set for the download)

header("Cache-Control: max-age=1000");

Now everything seems to work fine. Knock on wood. :)

fmedina’s picture

This is a variation on the topic, but I thought might fit anyways. If you click on a normal link on the web that has a PDF, the browser will normally open acrobat within the browser, without asking save or open. Is there a way to set that in drupal or something I can change? I need people to access manuals in certain places and they shoudl click on a link and acrobat shoudl open immediately. Thanks,

snorefest’s picture

Hi there! It is the browser you need to configure properly. Have a look at the adobe site for more information. Good luck...