本文介绍了PHP上传进度条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试使用php使用Amazon S3 sdk创建带有进度的上传.我的本地XAMPP服务器中的apc工作正常,并为本地系统使用了以下代码

http://www.johnboy.com/php-upload-progress-bar/

但是,在s3服务器上尝试同样的操作时会遇到困难.确切地说,我正在使用create_object().

http://docs.amazonwebservices.com/AWSSDKforPHP/latest/#m=AmazonS3/create_object

在本地驱动器上,php的move_uploaded_file()工作正常,并显示进度条.请建议我如何调整上面的代码以使用s3.

谢谢

Hi,

I am trying to create upload with progress using the Amazon S3 sdk using php. I have apc working fine in my local XAMPP server, with the following code for the local system

http://www.johnboy.com/php-upload-progress-bar/

But the difficulty arises when trying the same with the s3 server. To be exact i am using create_object().

http://docs.amazonwebservices.com/AWSSDKforPHP/latest/#m=AmazonS3/create_object

On the local drive the move_uploaded_file() of php works fine and displays the progress bar. Please suggest me how can i tweak the above code to work with s3.

Thanks

推荐答案


这篇关于PHP上传进度条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 23:47