RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

File sharing script

File mirror script
Do some process befor copying from temp to upload folder

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload
View previous topic :: View next topic  
Author Message
romano



Joined: 23 Aug 2011
Posts: 2

PostPosted: Aug 23, 2011 12:53 pm    Post subject: Do some process befor copying from temp to upload folder Reply with quote

Hi,

I want to transcode an audio file after uploading to temp folder and send it directly to amazon S3 storage. So I don't need to move the uploaded file to xupload’s target upload folder (I want to skip this process of xupload and get the feedback to my php to continue the work for transcoding and S3 storage).I need to know the place of this process.

The normal process of xupload Pro has a moving file from temp folder to final upload location which creates double coping process with transcoding of file and moving to S3 and my site has heavy traffic. I need to skip this process and do all processes in temp folder and finally remove the file from temp folder. I have good knowledge in php but in perl newbie.

Thanks,
Romano
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 22 Mar 2006
Posts: 1482

PostPosted: Aug 23, 2011 1:03 pm    Post subject: Reply with quote

If your perl knowledge is not good enough to modify xupload code - we suggest you to leave moving as is and do transcoding and amazon s3 uploading in php script which will be called by xupload when upload is complete (there's "url_post" parameter for that).
Back to top
View user's profile Send private message Send e-mail
romano



Joined: 23 Aug 2011
Posts: 2

PostPosted: Aug 23, 2011 1:39 pm    Post subject: Reply with quote

Thanks for fast reply,

Actually as I said the reason for this work is only skipping the copy process of upload.cgi to target folder. If it is only file move it shouldn't have heavy process but if it is copy I should find a way. I need to know
does it move the file from temp folder to target or not it is only a copy?
I think It can be a good feature for next version which the developers have an optional function in the xupload to apply their server side process.

Regards,
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 22 Mar 2006
Posts: 1482

PostPosted: Aug 23, 2011 1:49 pm    Post subject: Reply with quote

It's trying to move first. If moving failed (not enough permissions to delete) - then just copying.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Copyright © 2003-2013 Sibsoft Ltd