FileServe issues

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

FileServe issues

Tim Taplin
I'm having a problem where file_serve keeps outputting the same data  
even though the tag options (filename, file type) have been modified  
and the data being sent to the file_serve tag has been modified.

Any Thoughts?

sample code:

local('now'=(server_time(-long)));
file_serve(#fileoutput, -file='segment-'+#now+'.csv', -type='text/
comma-separated-values');

previously the -file tag read -file='segmentoutput.csv' and that is  
the name that still comes up.

Also, to reiterate, the data in the file doesn't change even when  
different data is sent to the file_serve tag.

I have been able to change the actual file name of the file  
containing the file_serve tag. This however only works on the first try.

Thanks for any thoughts.

Tim Taplin


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/

Reply | Threaded
Open this post in threaded view
|

Re: FileServe issues

Rick Draper
Hi Tim,

It sounds like you might be having some cache problems - what browser
are you using?  Is the server within your network or are pages being
delivered via a proxy server?

Try clearing the cache on the browser first.


Very best regards,
 
Rick

-----Original Message-----
From: Lasso Talk [mailto:[hidden email]] On Behalf Of Tim
Taplin
Sent: Thursday, 31 July 2008 4:57 AM
To: Lasso Talk
Subject: FileServe issues

I'm having a problem where file_serve keeps outputting the same data
even though the tag options (filename, file type) have been modified and
the data being sent to the file_serve tag has been modified.

Any Thoughts?

sample code:

local('now'=(server_time(-long)));
file_serve(#fileoutput, -file='segment-'+#now+'.csv', -type='text/
comma-separated-values');

previously the -file tag read -file='segmentoutput.csv' and that is the
name that still comes up.

Also, to reiterate, the data in the file doesn't change even when
different data is sent to the file_serve tag.

I have been able to change the actual file name of the file containing
the file_serve tag. This however only works on the first try.

Thanks for any thoughts.

Tim Taplin

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/

Reply | Threaded
Open this post in threaded view
|

Re: FileServe issues

stevepiercy
In reply to this post by Tim Taplin
Suggest looking for code that did not get commented.  It sounds like you have an artifact that slipped by.

Also suggest modifying your code as follows to troubleshoot.

    local('now'=(server_time(-long)));
    #now'<br>'#fileoutput;
    // file_serve(#fileoutput, -file='segment-'+#now+'.csv', -type='text/comma-separated-values');

I commented out the file_serve to avoid the built-in abort which would prevent the display of any output to the browser.

--steve


On Wednesday, July 30, 2008, [hidden email] (Tim Taplin) pronounced:

>I'm having a problem where file_serve keeps outputting the same data  
>even though the tag options (filename, file type) have been modified  
>and the data being sent to the file_serve tag has been modified.
>
>Any Thoughts?
>
>sample code:
>
>local('now'=(server_time(-long)));
>file_serve(#fileoutput, -file='segment-'+#now+'.csv', -type='text/
>comma-separated-values');
>
>previously the -file tag read -file='segmentoutput.csv' and that is  
>the name that still comes up.
>
>Also, to reiterate, the data in the file doesn't change even when  
>different data is sent to the file_serve tag.
>
>I have been able to change the actual file name of the file  
>containing the file_serve tag. This however only works on the first try.
>
>Thanks for any thoughts.
>
>Tim Taplin
>
>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy               Web Site Builder               Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/

Reply | Threaded
Open this post in threaded view
|

Re: FileServe issues

Bil Corry-3
In reply to this post by Tim Taplin
Tim Taplin wrote on 7/30/2008 1:57 PM:
> I'm having a problem where file_serve keeps outputting the same data
> even though the tag options (filename, file type) have been modified and
> the data being sent to the file_serve tag has been modified.

I tried it here on my dev box:

        local('fileoutput') = 'test';
        local('now')=server_time(-long);
        file_serve(#fileoutput, -file='segment-'+#now+'.csv', -type='text/comma-separated-values');

I used both IE7 and FF3 on Windows.  It worked fine, the file name changed every time I requested the file.

Maybe try the above code and see if it works for you.  If it does, then the issue is the code on that page.  If it doesn't, then something is caching the page (proxy, browser, etc).  Also, try a different browser and see if that helps.


- Bil


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/