Ganjaran Bonus Forex Yang Terbesar Tidak Pernah Ditawarkan Sebelum ini ... BONUS TANPA SEBARANG DEPOSIT SEBANYAK $1500 DARI INSTAFOREX !!


Go Back   CariGold Forum > COMPUTER, INTERNET > Webmaster, Blogger Discussion > Programming, Web Development

Recommended Brokers

Forex Chart
Crypto Chart
CG Sponsors



Reply
 
Thread Tools
  #1  
Old 31-05-2012, 02:10 PM
emir emir is offline
Active Plus

emir's Avatar
 
Trader Rating: (14)
Join Date: Dec 2008
Posts: 4,518
Thanks (Received): 17
Likes (Received): 5
Active Level
My Mood:
Default Mencari Video Upload Script - Free or Open Source

salam...

Aku ade projek kat opis nih yg memerlukan satu script... run kat php n mysql... utk user boleh upload file dlm format video (mp4, flv, wmv etc.)

Script tu simple pun xpe as long user boleh upload file2 tu... and admin boleh nmpk file2 tu dlm folder in server.

Aku dah try google tapi x jumpe yg sesuai, hrp2 kwn2 yg ensem n cun boleh menolong...

Jasa baik korang Allah jek yg dpt balas...
__________________
!

Last edited by emir; 31-05-2012 at 02:25 PM..
Reply With Quote
Paid Advertisement
  #2  
Old 01-06-2012, 01:09 PM
mutanic mutanic is offline
Super Active

mutanic's Avatar
 
Trader Rating: (2)
Join Date: May 2009
Posts: 5,161
Active Level
Default

C# boleh x TT? ni contoh aku park terus dalam document library kat Sharepoint, ada gak lagi satu park file kat directory dlm server nnt aku godek balik...requirement TT ni nak upload file dalam SQL ka?

coding cap ayam jer, sori aku x kemaskan sket harap TT faham laa...

Quote:
public void ButtonUploadFile_Click(object sender, System.EventArgs e)
{
try
{
if (FileUploadExcel.HasFile)
{
string strFileType = System.IO.Path.GetExtension(FileUploadExcel.FileNa me).ToString().ToLower();

if (strFileType.Trim() == ".xlsx" || strFileType.Trim() == ".xls")
{
tempValue.Text = FileUploadExcel.PostedFile.FileName.ToString();
tempFileName.Text = FileUploadExcel.FileName.ToString();
tempType.Text = FileUploadExcel.PostedFile.ContentType.ToString();
tempSize.Text = FileUploadExcel.PostedFile.ContentLength.ToString( );
tempBytes.Text = FileUploadExcel.FileBytes.ToString();

SPWeb spWeb = SPContext.Current.Web;

spWeb.AllowUnsafeUpdates = true;

SPDocumentLibrary spDocLib = spWeb.Lists["Archive"] as SPDocumentLibrary;

//Get file extension ( *.xls OR *.xlsx OR whatever files )
string fileExtension = FileUploadExcel.FileName.Substring(FileUploadExcel .FileName.IndexOf("."));
byte[] fileBytes = FileUploadExcel.FileBytes;
string strURL = spDocLib.RootFolder.Url + "/" + tempFileName.Text;

SPFile spFile = spDocLib.RootFolder.Files.Add(strURL, fileBytes, true);
spFile.Update();

spWeb.AllowUnsafeUpdates = false;

LabelUpload.Text = tempValue.Text;
lblMessage.Visible = true;
lblMessage.ForeColor = System.Drawing.Color.Green;
lblMessage.Text = "<B>File Name : </B>" + FileUploadExcel.PostedFile.FileName + "<BR><B>File Type : </B>" + FileUploadExcel.PostedFile.ContentType + "<BR><B>File Size : </B>" + FileUploadExcel.PostedFile.ContentLength + " kb<BR><BR>File successfully uploaded to server.";
**
else
{
PanelView.Visible = false;
LabelUpload.Visible = false;
lblMessage.Text = "Please select Excel (.xls) document only.";
lblMessage.ForeColor = System.Drawing.Color.Red;
lblMessage.Visible = true;
**
**
else
{
PanelView.Visible = false;
lblMessage.Visible = false;
LabelUpload.Visible = true;
LabelUpload.ForeColor = System.Drawing.Color.Red;
LabelUpload.Text = "Please select a file to upload.";
**
**
catch (Exception ex)
{
LabelUpload.Visible = true;
LabelUpload.Text = "Error: " + ex.Message.ToString();
**
**
__________________
“When it's difficult like this, the taste (of winning) is better.” ~ Valentino Rossi
Reply With Quote
Thanks emir thanked for this post
  #3  
Old 01-06-2012, 09:54 PM
emir emir is offline
Active Plus

emir's Avatar
 
Trader Rating: (14)
Join Date: Dec 2008
Posts: 4,518
Thanks (Received): 17
Likes (Received): 5
Active Level
My Mood:
Default

tq tuan...

xpe aku buat simple jek based dari w3school... hihihi
__________________
!
Reply With Quote
  #4  
Old 21-08-2012, 07:30 PM
fastdotnet fastdotnet is offline
Newbie

fastdotnet's Avatar
 
Trader Rating: (0)
Join Date: Jul 2012
Posts: 6
Thanks (Received): 0
Likes (Received): 0
Active Level
Default

Php melody boleh cuba .bisa download percuma

http://www.phpsugar.com/outgoinglink.php?demo=1
Reply With Quote
  #5  
Old 15-11-2017, 09:28 PM
SmileAlways SmileAlways is offline
Super Active

SmileAlways's Avatar
 
Trader Rating: (0)
Join Date: Aug 2014
Posts: 7,990
Thanks (Received): 2
Likes (Received): 273
Active Level
My Mood:
Default

engkorang tahu x katmana boleh host mp4 dgn direct link
ni contoh https://suyu.neocities.org/moon.mp4
tapi ni berbayar

aku nak free
__________________
Jangan tenggelam di dalam air yang jangkat
Reply With Quote
Sponsored Links
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

AMP
Forum Jump