i have a function where i can save an excel file cvs or xlx after i save it i can download it as csv or xlx but the problem shows when i restart the site or refresh it when i try downloading it it just download text. is there a way i can fix this? Thanks!
Hi @jesu verso,
I have reviewed your OML file and could not find any issues in the implementation.
I think the file you uploaded is a plain text file instead of an Excel (.xlsx) or CSV file.
Could you please share a screenshot of the data currently stored in the table?
Note: Make sure the file extension is xlsx or .csv
no sir try refreshing it. the problem when i download the csv or xlsx files it just goes to txt file
here it is sr
I have verified this by adding a valid CSV file with sample data, and I can download it as a CSV file.
As @Philip Paolo De Castro suggested, please ensure that you have added a valid file.
I have also attached a sample CSV file so you can try uploading it to your application and check whether it downloads in CSV format.
it is sir valid and csv and xlsx only, can you try on the end when you go save the csv file then try to refresh it. check if its still csv.
Is it possible to share the CSV file which you have uploaded in your application. Because I can upload and check the same at my end.
the same as you sir.
here it is sir
Could you please check the file properties of the above files?
Hi Jesu Verso.
This happens when you are trying to download null values no item to be download (Binary and filename).
My Suggestion is that
yes sir it is null is it possbile to download it base on the file name?
You are checking if the file content is Null so that is not an Issue.
This May be a File association issue on your OS or if it's an enterprise PC they may be restrictions on download that can also cause this issue
Please check from another machine.
Please find attached all sample files they all work there is no issue with your code