Comments (5)
No error thrown? Most likely the file is saved in the current working/temp directory. Try to set the wanted output path:
->download("/path/to/output.emf");
from cloudconvert-php.
Thanks for the quick reply!
No error is thrown with the code above.
If I try to set the path with the following code
->download('/data/baagede/output.emf');
This error is thrown:
Warning: fopen(/data/baagede/output.emf): failed to open stream: No such file or directory in phar:///storage/content/51/132251/fiskdata.se/public_html/_inc/cloudconvert/cloudconvert-php.phar/src/Process.php on line 135 Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Invalid resource type: boolean' in phar:///storage/content/51/132251/fiskdata.se/public_html/_inc/cloudconvert/cloudconvert-php.phar/vendor/guzzlehttp/psr7/src/functions.php:113 Stack trace: #0 phar:///storage/content/51/132251/fiskdata.se/public_html/_inc/cloudconvert/cloudconvert-php.phar/src/Process.php(157): GuzzleHttp\Psr7\stream_for(false) #1 phar:///storage/content/51/132251/fiskdata.se/public_html/_inc/cloudconvert/cloudconvert-php.phar/src/Process.php(135): CloudConvert\Process->downloadStream(false, NULL) #2 /storage/content/51/132251/fiskdata.se/public_html/adm/report/ajax/convertSVG-EMF.php(53): CloudConvert\Process->download('/data/baagede/o...') #3 {main} thrown in phar:///storage/content/51/132251/fiskdata.se/public_html/_inc/cloudconvert/cloudconvert-php.phar/vendor/guzzlehttp/psr7/src/functions.php on line 113
from cloudconvert-php.
Please make sure the directory exists and is writeable.
from cloudconvert-php.
Should it be an absolute or relative path? I will set the path dynamically depending on the source
$_SERVER['DOCUMENT_ROOT'] . '/path-to-folder/filename.ext'
'/path-to-folder/filename.ext'
EDIT:
If I use the absolute path I can save the output on the local server, but still the download doesn't start.
I'm using Chrome.
from cloudconvert-php.
$process->download()
saves the output file locally on your server. If you want to serve the output file to your users, this is thing of your implementation. Alternatively you can point your users directly to $process->output->url
.
from cloudconvert-php.
Related Issues (20)
- Wait Endpoint Deprecated HOT 3
- PHP 8.1 Support HOT 1
- Best way to Add SSL Cert to Guzzle being used
- A new job. HOT 2
- issue with php-http
- Update compose to use symfony/options-resolver v7 HOT 1
- getResult on export task returns nothing HOT 8
- Compose Installation Issue HOT 6
- i am acing this problem. HOT 2
- Getting empty response in ExportUrls from Jobs HOT 3
- getting error: The tasks field is required HOT 1
- Support for guzzle/psr7 2.1.0 HOT 2
- Need an example of how to convert html to docx HOT 1
- Improve documentation HOT 4
- Class 'CloudConvert\CloudConvert' not found
- DOCX to PDF: "can't find PDF header" error HOT 2
- Archive HOT 1
- Idle timeout reached HOT 1
- Job error 'started too many jobs at once' HOT 2
- Issue downloading the file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudconvert-php.