0

Hi please help with the coed to upload a CSV file. i triied using this code which i used on msome of my pages to upload files like pictures and text files and it works pefactly

strFile = "C:\TBP_IntdevResellerReport.csv  "
set galaxy = Server.CreateObject("SiteGalaxyUpload.Form")

if galaxy("upload_btn") = "Upload" then

     file=galaxy("upload_file")

     if len(file) > 0 then 
        
        galaxy("upload_file").SaveAs (strFile)

        set galaxy=nothing
       
       response.redirect("voise_calls.asp")
     end if 
end if

response.write "<form name=""upload_form""  enctype=""multipart/form-data"" action=""voise_calls.asp"" method=""post"">"
    response.write "<p> Please select file to upload:</p>"
    response.writye "<input type=""file"" name=""upload_file"" size=""30""/>"
    response.write"<br/><br/><input type=""submit"" name=""upload_btn"" value=""Upload"" class=""FormButtons"" />"
</form>

but gives me an error that says Failed to read binary data

but if i load other type of files it works please help

you dont have to fix my code if you have one that will work better
thanx in advance

3
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by PotaZinga
0

OK i checked that and still the code don't read the file but it can read for other type of files like text files or pictures but not CSV files..

0

and i did ryt it :D i just got it working the problem want the my code the problem was with my file it was to large... :D

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.