Ajax call in plugin
-
Hello,
i am developing a plugin for WordPress. I my Plugin i can choose an PDF which is uploaded to WordPress. If i have choose a PDF file i can click on the “start import” button and then ajax call a php function which read the file and save every page as .jpg.I use ImageMagick. Everthing is working fine. But if i take a PDF with 50 MB the ajax call nerver ends. Does any one have a idea?
At first i thought maybe its the max_execution time or something elese but it doesn’t.
Sometimes the script generate the Pages 1-30 and after that the ajax call start from the beginning and then the script generate all 50 pages, but the ajax call become no response. I get no 200 or 404 i got nothing. But this is only in the big PDF’s.
Has WordPress any ajax timeout or something like that?
Thanks for the help.
- The topic ‘Ajax call in plugin’ is closed to new replies.