Jump to content

iPhone Download jpg (or pdf) File - How ?


andyhill

Recommended Posts

I am using:-

 

UniSession.SendFile(sFileName, ExtractFileName(sFileName));

 

To download jpg files and it works fine on Desktop HOWEVER it does not work on iPhones.

 

I know iPhones control all downloads but pdf's can be easily downloaded from websites ?

 

Please advise how - thanks.

Link to comment
Share on other sites

  • 1 month later...
  • 2 years later...

Hello:

I have the same problem. I can't download a pdf on Iphone, while on android and desktop it downloads fine.

I try

UniSession.SendFile(UniServerModule.FilesFolderPath+ 'Planos.pdf');

 

Obviously, the file exists in the folder.

Any solution for this ??

Best regards,

 

Link to comment
Share on other sites

15 hours ago, PALF said:

Hello:

I have the same problem. I can't download a pdf on Iphone, while on android and desktop it downloads fine.

I try


UniSession.SendFile(UniServerModule.FilesFolderPath+ 'Planos.pdf');

 

Obviously, the file exists in the folder.

Any solution for this ??

Best regards,

 

Maybe you shoule add the file type to MIMI table.

MimeTable.AddMimeType('fr3', 'application/octet-stream', False);

Link to comment
Share on other sites

×
×
  • Create New...